{
 "cells": [
  {
   "cell_type": "markdown",
   "metadata": {},
   "source": [
    "## Loading data into Pandas"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 6,
   "metadata": {},
   "outputs": [
    {
     "data": {
      "text/plain": [
       "0       45\n",
       "1       60\n",
       "2       80\n",
       "3       80\n",
       "4       39\n",
       "5       58\n",
       "6       78\n",
       "7       78\n",
       "8       78\n",
       "9       44\n",
       "10      59\n",
       "11      79\n",
       "12      79\n",
       "13      45\n",
       "14      50\n",
       "15      60\n",
       "16      40\n",
       "17      45\n",
       "18      65\n",
       "19      65\n",
       "20      40\n",
       "21      63\n",
       "22      83\n",
       "23      83\n",
       "24      30\n",
       "25      55\n",
       "26      40\n",
       "27      65\n",
       "28      35\n",
       "29      60\n",
       "      ... \n",
       "770     95\n",
       "771     78\n",
       "772     67\n",
       "773     50\n",
       "774     45\n",
       "775     68\n",
       "776     90\n",
       "777     57\n",
       "778     43\n",
       "779     85\n",
       "780     49\n",
       "781     44\n",
       "782     54\n",
       "783     59\n",
       "784     65\n",
       "785     55\n",
       "786     75\n",
       "787     85\n",
       "788     55\n",
       "789     95\n",
       "790     40\n",
       "791     85\n",
       "792    126\n",
       "793    126\n",
       "794    108\n",
       "795     50\n",
       "796     50\n",
       "797     80\n",
       "798     80\n",
       "799     80\n",
       "Name: HP, Length: 800, dtype: int64"
      ]
     },
     "execution_count": 6,
     "metadata": {},
     "output_type": "execute_result"
    }
   ],
   "source": [
    "import pandas as pd\n",
    "\n",
    "df = pd.read_csv('pokemon_data.csv')\n",
    "\n",
    "# print(df.head(5))\n",
    "\n",
    "# df_xlsx = pd.read_excel('pokemon_data.xlsx')\n",
    "# print(df_xlsx.head(3))\n",
    "\n",
    "# df = pd.read_csv('pokemon_data.txt', delimiter='\\t')\n",
    "\n",
    "# print(df.head(5))\n",
    "\n",
    "df['HP']"
   ]
  },
  {
   "cell_type": "markdown",
   "metadata": {},
   "source": [
    "## Reading Data in Pandas"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 55,
   "metadata": {},
   "outputs": [
    {
     "data": {
      "text/plain": [
       "Index(['#', 'Name', 'Type 1', 'Type 2', 'HP', 'Attack', 'Defense', 'Sp. Atk',\n",
       "       'Sp. Def', 'Speed', 'Generation', 'Legendary'],\n",
       "      dtype='object')"
      ]
     },
     "execution_count": 55,
     "metadata": {},
     "output_type": "execute_result"
    }
   ],
   "source": [
    "#### Read Headers\n",
    "df.columns\n",
    "\n",
    "## Read each Column\n",
    "#print(df[['Name', 'Type 1', 'HP']])\n",
    "\n",
    "## Read Each Row\n",
    "#print(df.iloc[0:4])\n",
    "# for index, row in df.iterrows():\n",
    "#     print(index, row['Name'])\n",
    "#df.loc[df['Type 1'] == \"Grass\"]\n",
    "\n",
    "## Read a specific location (R,C)\n",
    "#print(df.iloc[2,1])\n"
   ]
  },
  {
   "cell_type": "markdown",
   "metadata": {},
   "source": [
    "## Sorting/Describing Data"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 56,
   "metadata": {},
   "outputs": [
    {
     "data": {
      "text/html": [
       "<div>\n",
       "<style scoped>\n",
       "    .dataframe tbody tr th:only-of-type {\n",
       "        vertical-align: middle;\n",
       "    }\n",
       "\n",
       "    .dataframe tbody tr th {\n",
       "        vertical-align: top;\n",
       "    }\n",
       "\n",
       "    .dataframe thead th {\n",
       "        text-align: right;\n",
       "    }\n",
       "</style>\n",
       "<table border=\"1\" class=\"dataframe\">\n",
       "  <thead>\n",
       "    <tr style=\"text-align: right;\">\n",
       "      <th></th>\n",
       "      <th>#</th>\n",
       "      <th>Name</th>\n",
       "      <th>Type 1</th>\n",
       "      <th>Type 2</th>\n",
       "      <th>HP</th>\n",
       "      <th>Attack</th>\n",
       "      <th>Defense</th>\n",
       "      <th>Sp. Atk</th>\n",
       "      <th>Sp. Def</th>\n",
       "      <th>Speed</th>\n",
       "      <th>Generation</th>\n",
       "      <th>Legendary</th>\n",
       "    </tr>\n",
       "  </thead>\n",
       "  <tbody>\n",
       "    <tr>\n",
       "      <th>0</th>\n",
       "      <td>1</td>\n",
       "      <td>Bulbasaur</td>\n",
       "      <td>Grass</td>\n",
       "      <td>Poison</td>\n",
       "      <td>45</td>\n",
       "      <td>49</td>\n",
       "      <td>49</td>\n",
       "      <td>65</td>\n",
       "      <td>65</td>\n",
       "      <td>45</td>\n",
       "      <td>1</td>\n",
       "      <td>False</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>1</th>\n",
       "      <td>2</td>\n",
       "      <td>Ivysaur</td>\n",
       "      <td>Grass</td>\n",
       "      <td>Poison</td>\n",
       "      <td>60</td>\n",
       "      <td>62</td>\n",
       "      <td>63</td>\n",
       "      <td>80</td>\n",
       "      <td>80</td>\n",
       "      <td>60</td>\n",
       "      <td>1</td>\n",
       "      <td>False</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>2</th>\n",
       "      <td>3</td>\n",
       "      <td>Venusaur</td>\n",
       "      <td>Grass</td>\n",
       "      <td>Poison</td>\n",
       "      <td>80</td>\n",
       "      <td>82</td>\n",
       "      <td>83</td>\n",
       "      <td>100</td>\n",
       "      <td>100</td>\n",
       "      <td>80</td>\n",
       "      <td>1</td>\n",
       "      <td>False</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>3</th>\n",
       "      <td>3</td>\n",
       "      <td>VenusaurMega Venusaur</td>\n",
       "      <td>Grass</td>\n",
       "      <td>Poison</td>\n",
       "      <td>80</td>\n",
       "      <td>100</td>\n",
       "      <td>123</td>\n",
       "      <td>122</td>\n",
       "      <td>120</td>\n",
       "      <td>80</td>\n",
       "      <td>1</td>\n",
       "      <td>False</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>4</th>\n",
       "      <td>4</td>\n",
       "      <td>Charmander</td>\n",
       "      <td>Fire</td>\n",
       "      <td>NaN</td>\n",
       "      <td>39</td>\n",
       "      <td>52</td>\n",
       "      <td>43</td>\n",
       "      <td>60</td>\n",
       "      <td>50</td>\n",
       "      <td>65</td>\n",
       "      <td>1</td>\n",
       "      <td>False</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>5</th>\n",
       "      <td>5</td>\n",
       "      <td>Charmeleon</td>\n",
       "      <td>Fire</td>\n",
       "      <td>NaN</td>\n",
       "      <td>58</td>\n",
       "      <td>64</td>\n",
       "      <td>58</td>\n",
       "      <td>80</td>\n",
       "      <td>65</td>\n",
       "      <td>80</td>\n",
       "      <td>1</td>\n",
       "      <td>False</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>6</th>\n",
       "      <td>6</td>\n",
       "      <td>Charizard</td>\n",
       "      <td>Fire</td>\n",
       "      <td>Flying</td>\n",
       "      <td>78</td>\n",
       "      <td>84</td>\n",
       "      <td>78</td>\n",
       "      <td>109</td>\n",
       "      <td>85</td>\n",
       "      <td>100</td>\n",
       "      <td>1</td>\n",
       "      <td>False</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>7</th>\n",
       "      <td>6</td>\n",
       "      <td>CharizardMega Charizard X</td>\n",
       "      <td>Fire</td>\n",
       "      <td>Dragon</td>\n",
       "      <td>78</td>\n",
       "      <td>130</td>\n",
       "      <td>111</td>\n",
       "      <td>130</td>\n",
       "      <td>85</td>\n",
       "      <td>100</td>\n",
       "      <td>1</td>\n",
       "      <td>False</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>8</th>\n",
       "      <td>6</td>\n",
       "      <td>CharizardMega Charizard Y</td>\n",
       "      <td>Fire</td>\n",
       "      <td>Flying</td>\n",
       "      <td>78</td>\n",
       "      <td>104</td>\n",
       "      <td>78</td>\n",
       "      <td>159</td>\n",
       "      <td>115</td>\n",
       "      <td>100</td>\n",
       "      <td>1</td>\n",
       "      <td>False</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>9</th>\n",
       "      <td>7</td>\n",
       "      <td>Squirtle</td>\n",
       "      <td>Water</td>\n",
       "      <td>NaN</td>\n",
       "      <td>44</td>\n",
       "      <td>48</td>\n",
       "      <td>65</td>\n",
       "      <td>50</td>\n",
       "      <td>64</td>\n",
       "      <td>43</td>\n",
       "      <td>1</td>\n",
       "      <td>False</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>10</th>\n",
       "      <td>8</td>\n",
       "      <td>Wartortle</td>\n",
       "      <td>Water</td>\n",
       "      <td>NaN</td>\n",
       "      <td>59</td>\n",
       "      <td>63</td>\n",
       "      <td>80</td>\n",
       "      <td>65</td>\n",
       "      <td>80</td>\n",
       "      <td>58</td>\n",
       "      <td>1</td>\n",
       "      <td>False</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>11</th>\n",
       "      <td>9</td>\n",
       "      <td>Blastoise</td>\n",
       "      <td>Water</td>\n",
       "      <td>NaN</td>\n",
       "      <td>79</td>\n",
       "      <td>83</td>\n",
       "      <td>100</td>\n",
       "      <td>85</td>\n",
       "      <td>105</td>\n",
       "      <td>78</td>\n",
       "      <td>1</td>\n",
       "      <td>False</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>12</th>\n",
       "      <td>9</td>\n",
       "      <td>BlastoiseMega Blastoise</td>\n",
       "      <td>Water</td>\n",
       "      <td>NaN</td>\n",
       "      <td>79</td>\n",
       "      <td>103</td>\n",
       "      <td>120</td>\n",
       "      <td>135</td>\n",
       "      <td>115</td>\n",
       "      <td>78</td>\n",
       "      <td>1</td>\n",
       "      <td>False</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>13</th>\n",
       "      <td>10</td>\n",
       "      <td>Caterpie</td>\n",
       "      <td>Bug</td>\n",
       "      <td>NaN</td>\n",
       "      <td>45</td>\n",
       "      <td>30</td>\n",
       "      <td>35</td>\n",
       "      <td>20</td>\n",
       "      <td>20</td>\n",
       "      <td>45</td>\n",
       "      <td>1</td>\n",
       "      <td>False</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>14</th>\n",
       "      <td>11</td>\n",
       "      <td>Metapod</td>\n",
       "      <td>Bug</td>\n",
       "      <td>NaN</td>\n",
       "      <td>50</td>\n",
       "      <td>20</td>\n",
       "      <td>55</td>\n",
       "      <td>25</td>\n",
       "      <td>25</td>\n",
       "      <td>30</td>\n",
       "      <td>1</td>\n",
       "      <td>False</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>15</th>\n",
       "      <td>12</td>\n",
       "      <td>Butterfree</td>\n",
       "      <td>Bug</td>\n",
       "      <td>Flying</td>\n",
       "      <td>60</td>\n",
       "      <td>45</td>\n",
       "      <td>50</td>\n",
       "      <td>90</td>\n",
       "      <td>80</td>\n",
       "      <td>70</td>\n",
       "      <td>1</td>\n",
       "      <td>False</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>16</th>\n",
       "      <td>13</td>\n",
       "      <td>Weedle</td>\n",
       "      <td>Bug</td>\n",
       "      <td>Poison</td>\n",
       "      <td>40</td>\n",
       "      <td>35</td>\n",
       "      <td>30</td>\n",
       "      <td>20</td>\n",
       "      <td>20</td>\n",
       "      <td>50</td>\n",
       "      <td>1</td>\n",
       "      <td>False</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>17</th>\n",
       "      <td>14</td>\n",
       "      <td>Kakuna</td>\n",
       "      <td>Bug</td>\n",
       "      <td>Poison</td>\n",
       "      <td>45</td>\n",
       "      <td>25</td>\n",
       "      <td>50</td>\n",
       "      <td>25</td>\n",
       "      <td>25</td>\n",
       "      <td>35</td>\n",
       "      <td>1</td>\n",
       "      <td>False</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>18</th>\n",
       "      <td>15</td>\n",
       "      <td>Beedrill</td>\n",
       "      <td>Bug</td>\n",
       "      <td>Poison</td>\n",
       "      <td>65</td>\n",
       "      <td>90</td>\n",
       "      <td>40</td>\n",
       "      <td>45</td>\n",
       "      <td>80</td>\n",
       "      <td>75</td>\n",
       "      <td>1</td>\n",
       "      <td>False</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>19</th>\n",
       "      <td>15</td>\n",
       "      <td>BeedrillMega Beedrill</td>\n",
       "      <td>Bug</td>\n",
       "      <td>Poison</td>\n",
       "      <td>65</td>\n",
       "      <td>150</td>\n",
       "      <td>40</td>\n",
       "      <td>15</td>\n",
       "      <td>80</td>\n",
       "      <td>145</td>\n",
       "      <td>1</td>\n",
       "      <td>False</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>20</th>\n",
       "      <td>16</td>\n",
       "      <td>Pidgey</td>\n",
       "      <td>Normal</td>\n",
       "      <td>Flying</td>\n",
       "      <td>40</td>\n",
       "      <td>45</td>\n",
       "      <td>40</td>\n",
       "      <td>35</td>\n",
       "      <td>35</td>\n",
       "      <td>56</td>\n",
       "      <td>1</td>\n",
       "      <td>False</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>21</th>\n",
       "      <td>17</td>\n",
       "      <td>Pidgeotto</td>\n",
       "      <td>Normal</td>\n",
       "      <td>Flying</td>\n",
       "      <td>63</td>\n",
       "      <td>60</td>\n",
       "      <td>55</td>\n",
       "      <td>50</td>\n",
       "      <td>50</td>\n",
       "      <td>71</td>\n",
       "      <td>1</td>\n",
       "      <td>False</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>22</th>\n",
       "      <td>18</td>\n",
       "      <td>Pidgeot</td>\n",
       "      <td>Normal</td>\n",
       "      <td>Flying</td>\n",
       "      <td>83</td>\n",
       "      <td>80</td>\n",
       "      <td>75</td>\n",
       "      <td>70</td>\n",
       "      <td>70</td>\n",
       "      <td>101</td>\n",
       "      <td>1</td>\n",
       "      <td>False</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>23</th>\n",
       "      <td>18</td>\n",
       "      <td>PidgeotMega Pidgeot</td>\n",
       "      <td>Normal</td>\n",
       "      <td>Flying</td>\n",
       "      <td>83</td>\n",
       "      <td>80</td>\n",
       "      <td>80</td>\n",
       "      <td>135</td>\n",
       "      <td>80</td>\n",
       "      <td>121</td>\n",
       "      <td>1</td>\n",
       "      <td>False</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>24</th>\n",
       "      <td>19</td>\n",
       "      <td>Rattata</td>\n",
       "      <td>Normal</td>\n",
       "      <td>NaN</td>\n",
       "      <td>30</td>\n",
       "      <td>56</td>\n",
       "      <td>35</td>\n",
       "      <td>25</td>\n",
       "      <td>35</td>\n",
       "      <td>72</td>\n",
       "      <td>1</td>\n",
       "      <td>False</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>25</th>\n",
       "      <td>20</td>\n",
       "      <td>Raticate</td>\n",
       "      <td>Normal</td>\n",
       "      <td>NaN</td>\n",
       "      <td>55</td>\n",
       "      <td>81</td>\n",
       "      <td>60</td>\n",
       "      <td>50</td>\n",
       "      <td>70</td>\n",
       "      <td>97</td>\n",
       "      <td>1</td>\n",
       "      <td>False</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>26</th>\n",
       "      <td>21</td>\n",
       "      <td>Spearow</td>\n",
       "      <td>Normal</td>\n",
       "      <td>Flying</td>\n",
       "      <td>40</td>\n",
       "      <td>60</td>\n",
       "      <td>30</td>\n",
       "      <td>31</td>\n",
       "      <td>31</td>\n",
       "      <td>70</td>\n",
       "      <td>1</td>\n",
       "      <td>False</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>27</th>\n",
       "      <td>22</td>\n",
       "      <td>Fearow</td>\n",
       "      <td>Normal</td>\n",
       "      <td>Flying</td>\n",
       "      <td>65</td>\n",
       "      <td>90</td>\n",
       "      <td>65</td>\n",
       "      <td>61</td>\n",
       "      <td>61</td>\n",
       "      <td>100</td>\n",
       "      <td>1</td>\n",
       "      <td>False</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>28</th>\n",
       "      <td>23</td>\n",
       "      <td>Ekans</td>\n",
       "      <td>Poison</td>\n",
       "      <td>NaN</td>\n",
       "      <td>35</td>\n",
       "      <td>60</td>\n",
       "      <td>44</td>\n",
       "      <td>40</td>\n",
       "      <td>54</td>\n",
       "      <td>55</td>\n",
       "      <td>1</td>\n",
       "      <td>False</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>29</th>\n",
       "      <td>24</td>\n",
       "      <td>Arbok</td>\n",
       "      <td>Poison</td>\n",
       "      <td>NaN</td>\n",
       "      <td>60</td>\n",
       "      <td>85</td>\n",
       "      <td>69</td>\n",
       "      <td>65</td>\n",
       "      <td>79</td>\n",
       "      <td>80</td>\n",
       "      <td>1</td>\n",
       "      <td>False</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>...</th>\n",
       "      <td>...</td>\n",
       "      <td>...</td>\n",
       "      <td>...</td>\n",
       "      <td>...</td>\n",
       "      <td>...</td>\n",
       "      <td>...</td>\n",
       "      <td>...</td>\n",
       "      <td>...</td>\n",
       "      <td>...</td>\n",
       "      <td>...</td>\n",
       "      <td>...</td>\n",
       "      <td>...</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>770</th>\n",
       "      <td>700</td>\n",
       "      <td>Sylveon</td>\n",
       "      <td>Fairy</td>\n",
       "      <td>NaN</td>\n",
       "      <td>95</td>\n",
       "      <td>65</td>\n",
       "      <td>65</td>\n",
       "      <td>110</td>\n",
       "      <td>130</td>\n",
       "      <td>60</td>\n",
       "      <td>6</td>\n",
       "      <td>False</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>771</th>\n",
       "      <td>701</td>\n",
       "      <td>Hawlucha</td>\n",
       "      <td>Fighting</td>\n",
       "      <td>Flying</td>\n",
       "      <td>78</td>\n",
       "      <td>92</td>\n",
       "      <td>75</td>\n",
       "      <td>74</td>\n",
       "      <td>63</td>\n",
       "      <td>118</td>\n",
       "      <td>6</td>\n",
       "      <td>False</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>772</th>\n",
       "      <td>702</td>\n",
       "      <td>Dedenne</td>\n",
       "      <td>Electric</td>\n",
       "      <td>Fairy</td>\n",
       "      <td>67</td>\n",
       "      <td>58</td>\n",
       "      <td>57</td>\n",
       "      <td>81</td>\n",
       "      <td>67</td>\n",
       "      <td>101</td>\n",
       "      <td>6</td>\n",
       "      <td>False</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>773</th>\n",
       "      <td>703</td>\n",
       "      <td>Carbink</td>\n",
       "      <td>Rock</td>\n",
       "      <td>Fairy</td>\n",
       "      <td>50</td>\n",
       "      <td>50</td>\n",
       "      <td>150</td>\n",
       "      <td>50</td>\n",
       "      <td>150</td>\n",
       "      <td>50</td>\n",
       "      <td>6</td>\n",
       "      <td>False</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>774</th>\n",
       "      <td>704</td>\n",
       "      <td>Goomy</td>\n",
       "      <td>Dragon</td>\n",
       "      <td>NaN</td>\n",
       "      <td>45</td>\n",
       "      <td>50</td>\n",
       "      <td>35</td>\n",
       "      <td>55</td>\n",
       "      <td>75</td>\n",
       "      <td>40</td>\n",
       "      <td>6</td>\n",
       "      <td>False</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>775</th>\n",
       "      <td>705</td>\n",
       "      <td>Sliggoo</td>\n",
       "      <td>Dragon</td>\n",
       "      <td>NaN</td>\n",
       "      <td>68</td>\n",
       "      <td>75</td>\n",
       "      <td>53</td>\n",
       "      <td>83</td>\n",
       "      <td>113</td>\n",
       "      <td>60</td>\n",
       "      <td>6</td>\n",
       "      <td>False</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>776</th>\n",
       "      <td>706</td>\n",
       "      <td>Goodra</td>\n",
       "      <td>Dragon</td>\n",
       "      <td>NaN</td>\n",
       "      <td>90</td>\n",
       "      <td>100</td>\n",
       "      <td>70</td>\n",
       "      <td>110</td>\n",
       "      <td>150</td>\n",
       "      <td>80</td>\n",
       "      <td>6</td>\n",
       "      <td>False</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>777</th>\n",
       "      <td>707</td>\n",
       "      <td>Klefki</td>\n",
       "      <td>Steel</td>\n",
       "      <td>Fairy</td>\n",
       "      <td>57</td>\n",
       "      <td>80</td>\n",
       "      <td>91</td>\n",
       "      <td>80</td>\n",
       "      <td>87</td>\n",
       "      <td>75</td>\n",
       "      <td>6</td>\n",
       "      <td>False</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>778</th>\n",
       "      <td>708</td>\n",
       "      <td>Phantump</td>\n",
       "      <td>Ghost</td>\n",
       "      <td>Grass</td>\n",
       "      <td>43</td>\n",
       "      <td>70</td>\n",
       "      <td>48</td>\n",
       "      <td>50</td>\n",
       "      <td>60</td>\n",
       "      <td>38</td>\n",
       "      <td>6</td>\n",
       "      <td>False</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>779</th>\n",
       "      <td>709</td>\n",
       "      <td>Trevenant</td>\n",
       "      <td>Ghost</td>\n",
       "      <td>Grass</td>\n",
       "      <td>85</td>\n",
       "      <td>110</td>\n",
       "      <td>76</td>\n",
       "      <td>65</td>\n",
       "      <td>82</td>\n",
       "      <td>56</td>\n",
       "      <td>6</td>\n",
       "      <td>False</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>780</th>\n",
       "      <td>710</td>\n",
       "      <td>PumpkabooAverage Size</td>\n",
       "      <td>Ghost</td>\n",
       "      <td>Grass</td>\n",
       "      <td>49</td>\n",
       "      <td>66</td>\n",
       "      <td>70</td>\n",
       "      <td>44</td>\n",
       "      <td>55</td>\n",
       "      <td>51</td>\n",
       "      <td>6</td>\n",
       "      <td>False</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>781</th>\n",
       "      <td>710</td>\n",
       "      <td>PumpkabooSmall Size</td>\n",
       "      <td>Ghost</td>\n",
       "      <td>Grass</td>\n",
       "      <td>44</td>\n",
       "      <td>66</td>\n",
       "      <td>70</td>\n",
       "      <td>44</td>\n",
       "      <td>55</td>\n",
       "      <td>56</td>\n",
       "      <td>6</td>\n",
       "      <td>False</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>782</th>\n",
       "      <td>710</td>\n",
       "      <td>PumpkabooLarge Size</td>\n",
       "      <td>Ghost</td>\n",
       "      <td>Grass</td>\n",
       "      <td>54</td>\n",
       "      <td>66</td>\n",
       "      <td>70</td>\n",
       "      <td>44</td>\n",
       "      <td>55</td>\n",
       "      <td>46</td>\n",
       "      <td>6</td>\n",
       "      <td>False</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>783</th>\n",
       "      <td>710</td>\n",
       "      <td>PumpkabooSuper Size</td>\n",
       "      <td>Ghost</td>\n",
       "      <td>Grass</td>\n",
       "      <td>59</td>\n",
       "      <td>66</td>\n",
       "      <td>70</td>\n",
       "      <td>44</td>\n",
       "      <td>55</td>\n",
       "      <td>41</td>\n",
       "      <td>6</td>\n",
       "      <td>False</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>784</th>\n",
       "      <td>711</td>\n",
       "      <td>GourgeistAverage Size</td>\n",
       "      <td>Ghost</td>\n",
       "      <td>Grass</td>\n",
       "      <td>65</td>\n",
       "      <td>90</td>\n",
       "      <td>122</td>\n",
       "      <td>58</td>\n",
       "      <td>75</td>\n",
       "      <td>84</td>\n",
       "      <td>6</td>\n",
       "      <td>False</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>785</th>\n",
       "      <td>711</td>\n",
       "      <td>GourgeistSmall Size</td>\n",
       "      <td>Ghost</td>\n",
       "      <td>Grass</td>\n",
       "      <td>55</td>\n",
       "      <td>85</td>\n",
       "      <td>122</td>\n",
       "      <td>58</td>\n",
       "      <td>75</td>\n",
       "      <td>99</td>\n",
       "      <td>6</td>\n",
       "      <td>False</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>786</th>\n",
       "      <td>711</td>\n",
       "      <td>GourgeistLarge Size</td>\n",
       "      <td>Ghost</td>\n",
       "      <td>Grass</td>\n",
       "      <td>75</td>\n",
       "      <td>95</td>\n",
       "      <td>122</td>\n",
       "      <td>58</td>\n",
       "      <td>75</td>\n",
       "      <td>69</td>\n",
       "      <td>6</td>\n",
       "      <td>False</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>787</th>\n",
       "      <td>711</td>\n",
       "      <td>GourgeistSuper Size</td>\n",
       "      <td>Ghost</td>\n",
       "      <td>Grass</td>\n",
       "      <td>85</td>\n",
       "      <td>100</td>\n",
       "      <td>122</td>\n",
       "      <td>58</td>\n",
       "      <td>75</td>\n",
       "      <td>54</td>\n",
       "      <td>6</td>\n",
       "      <td>False</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>788</th>\n",
       "      <td>712</td>\n",
       "      <td>Bergmite</td>\n",
       "      <td>Ice</td>\n",
       "      <td>NaN</td>\n",
       "      <td>55</td>\n",
       "      <td>69</td>\n",
       "      <td>85</td>\n",
       "      <td>32</td>\n",
       "      <td>35</td>\n",
       "      <td>28</td>\n",
       "      <td>6</td>\n",
       "      <td>False</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>789</th>\n",
       "      <td>713</td>\n",
       "      <td>Avalugg</td>\n",
       "      <td>Ice</td>\n",
       "      <td>NaN</td>\n",
       "      <td>95</td>\n",
       "      <td>117</td>\n",
       "      <td>184</td>\n",
       "      <td>44</td>\n",
       "      <td>46</td>\n",
       "      <td>28</td>\n",
       "      <td>6</td>\n",
       "      <td>False</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>790</th>\n",
       "      <td>714</td>\n",
       "      <td>Noibat</td>\n",
       "      <td>Flying</td>\n",
       "      <td>Dragon</td>\n",
       "      <td>40</td>\n",
       "      <td>30</td>\n",
       "      <td>35</td>\n",
       "      <td>45</td>\n",
       "      <td>40</td>\n",
       "      <td>55</td>\n",
       "      <td>6</td>\n",
       "      <td>False</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>791</th>\n",
       "      <td>715</td>\n",
       "      <td>Noivern</td>\n",
       "      <td>Flying</td>\n",
       "      <td>Dragon</td>\n",
       "      <td>85</td>\n",
       "      <td>70</td>\n",
       "      <td>80</td>\n",
       "      <td>97</td>\n",
       "      <td>80</td>\n",
       "      <td>123</td>\n",
       "      <td>6</td>\n",
       "      <td>False</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>792</th>\n",
       "      <td>716</td>\n",
       "      <td>Xerneas</td>\n",
       "      <td>Fairy</td>\n",
       "      <td>NaN</td>\n",
       "      <td>126</td>\n",
       "      <td>131</td>\n",
       "      <td>95</td>\n",
       "      <td>131</td>\n",
       "      <td>98</td>\n",
       "      <td>99</td>\n",
       "      <td>6</td>\n",
       "      <td>True</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>793</th>\n",
       "      <td>717</td>\n",
       "      <td>Yveltal</td>\n",
       "      <td>Dark</td>\n",
       "      <td>Flying</td>\n",
       "      <td>126</td>\n",
       "      <td>131</td>\n",
       "      <td>95</td>\n",
       "      <td>131</td>\n",
       "      <td>98</td>\n",
       "      <td>99</td>\n",
       "      <td>6</td>\n",
       "      <td>True</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>794</th>\n",
       "      <td>718</td>\n",
       "      <td>Zygarde50% Forme</td>\n",
       "      <td>Dragon</td>\n",
       "      <td>Ground</td>\n",
       "      <td>108</td>\n",
       "      <td>100</td>\n",
       "      <td>121</td>\n",
       "      <td>81</td>\n",
       "      <td>95</td>\n",
       "      <td>95</td>\n",
       "      <td>6</td>\n",
       "      <td>True</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>795</th>\n",
       "      <td>719</td>\n",
       "      <td>Diancie</td>\n",
       "      <td>Rock</td>\n",
       "      <td>Fairy</td>\n",
       "      <td>50</td>\n",
       "      <td>100</td>\n",
       "      <td>150</td>\n",
       "      <td>100</td>\n",
       "      <td>150</td>\n",
       "      <td>50</td>\n",
       "      <td>6</td>\n",
       "      <td>True</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>796</th>\n",
       "      <td>719</td>\n",
       "      <td>DiancieMega Diancie</td>\n",
       "      <td>Rock</td>\n",
       "      <td>Fairy</td>\n",
       "      <td>50</td>\n",
       "      <td>160</td>\n",
       "      <td>110</td>\n",
       "      <td>160</td>\n",
       "      <td>110</td>\n",
       "      <td>110</td>\n",
       "      <td>6</td>\n",
       "      <td>True</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>797</th>\n",
       "      <td>720</td>\n",
       "      <td>HoopaHoopa Confined</td>\n",
       "      <td>Psychic</td>\n",
       "      <td>Ghost</td>\n",
       "      <td>80</td>\n",
       "      <td>110</td>\n",
       "      <td>60</td>\n",
       "      <td>150</td>\n",
       "      <td>130</td>\n",
       "      <td>70</td>\n",
       "      <td>6</td>\n",
       "      <td>True</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>798</th>\n",
       "      <td>720</td>\n",
       "      <td>HoopaHoopa Unbound</td>\n",
       "      <td>Psychic</td>\n",
       "      <td>Dark</td>\n",
       "      <td>80</td>\n",
       "      <td>160</td>\n",
       "      <td>60</td>\n",
       "      <td>170</td>\n",
       "      <td>130</td>\n",
       "      <td>80</td>\n",
       "      <td>6</td>\n",
       "      <td>True</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>799</th>\n",
       "      <td>721</td>\n",
       "      <td>Volcanion</td>\n",
       "      <td>Fire</td>\n",
       "      <td>Water</td>\n",
       "      <td>80</td>\n",
       "      <td>110</td>\n",
       "      <td>120</td>\n",
       "      <td>130</td>\n",
       "      <td>90</td>\n",
       "      <td>70</td>\n",
       "      <td>6</td>\n",
       "      <td>True</td>\n",
       "    </tr>\n",
       "  </tbody>\n",
       "</table>\n",
       "<p>800 rows × 12 columns</p>\n",
       "</div>"
      ],
      "text/plain": [
       "       #                       Name    Type 1  Type 2   HP  Attack  Defense  \\\n",
       "0      1                  Bulbasaur     Grass  Poison   45      49       49   \n",
       "1      2                    Ivysaur     Grass  Poison   60      62       63   \n",
       "2      3                   Venusaur     Grass  Poison   80      82       83   \n",
       "3      3      VenusaurMega Venusaur     Grass  Poison   80     100      123   \n",
       "4      4                 Charmander      Fire     NaN   39      52       43   \n",
       "5      5                 Charmeleon      Fire     NaN   58      64       58   \n",
       "6      6                  Charizard      Fire  Flying   78      84       78   \n",
       "7      6  CharizardMega Charizard X      Fire  Dragon   78     130      111   \n",
       "8      6  CharizardMega Charizard Y      Fire  Flying   78     104       78   \n",
       "9      7                   Squirtle     Water     NaN   44      48       65   \n",
       "10     8                  Wartortle     Water     NaN   59      63       80   \n",
       "11     9                  Blastoise     Water     NaN   79      83      100   \n",
       "12     9    BlastoiseMega Blastoise     Water     NaN   79     103      120   \n",
       "13    10                   Caterpie       Bug     NaN   45      30       35   \n",
       "14    11                    Metapod       Bug     NaN   50      20       55   \n",
       "15    12                 Butterfree       Bug  Flying   60      45       50   \n",
       "16    13                     Weedle       Bug  Poison   40      35       30   \n",
       "17    14                     Kakuna       Bug  Poison   45      25       50   \n",
       "18    15                   Beedrill       Bug  Poison   65      90       40   \n",
       "19    15      BeedrillMega Beedrill       Bug  Poison   65     150       40   \n",
       "20    16                     Pidgey    Normal  Flying   40      45       40   \n",
       "21    17                  Pidgeotto    Normal  Flying   63      60       55   \n",
       "22    18                    Pidgeot    Normal  Flying   83      80       75   \n",
       "23    18        PidgeotMega Pidgeot    Normal  Flying   83      80       80   \n",
       "24    19                    Rattata    Normal     NaN   30      56       35   \n",
       "25    20                   Raticate    Normal     NaN   55      81       60   \n",
       "26    21                    Spearow    Normal  Flying   40      60       30   \n",
       "27    22                     Fearow    Normal  Flying   65      90       65   \n",
       "28    23                      Ekans    Poison     NaN   35      60       44   \n",
       "29    24                      Arbok    Poison     NaN   60      85       69   \n",
       "..   ...                        ...       ...     ...  ...     ...      ...   \n",
       "770  700                    Sylveon     Fairy     NaN   95      65       65   \n",
       "771  701                   Hawlucha  Fighting  Flying   78      92       75   \n",
       "772  702                    Dedenne  Electric   Fairy   67      58       57   \n",
       "773  703                    Carbink      Rock   Fairy   50      50      150   \n",
       "774  704                      Goomy    Dragon     NaN   45      50       35   \n",
       "775  705                    Sliggoo    Dragon     NaN   68      75       53   \n",
       "776  706                     Goodra    Dragon     NaN   90     100       70   \n",
       "777  707                     Klefki     Steel   Fairy   57      80       91   \n",
       "778  708                   Phantump     Ghost   Grass   43      70       48   \n",
       "779  709                  Trevenant     Ghost   Grass   85     110       76   \n",
       "780  710      PumpkabooAverage Size     Ghost   Grass   49      66       70   \n",
       "781  710        PumpkabooSmall Size     Ghost   Grass   44      66       70   \n",
       "782  710        PumpkabooLarge Size     Ghost   Grass   54      66       70   \n",
       "783  710        PumpkabooSuper Size     Ghost   Grass   59      66       70   \n",
       "784  711      GourgeistAverage Size     Ghost   Grass   65      90      122   \n",
       "785  711        GourgeistSmall Size     Ghost   Grass   55      85      122   \n",
       "786  711        GourgeistLarge Size     Ghost   Grass   75      95      122   \n",
       "787  711        GourgeistSuper Size     Ghost   Grass   85     100      122   \n",
       "788  712                   Bergmite       Ice     NaN   55      69       85   \n",
       "789  713                    Avalugg       Ice     NaN   95     117      184   \n",
       "790  714                     Noibat    Flying  Dragon   40      30       35   \n",
       "791  715                    Noivern    Flying  Dragon   85      70       80   \n",
       "792  716                    Xerneas     Fairy     NaN  126     131       95   \n",
       "793  717                    Yveltal      Dark  Flying  126     131       95   \n",
       "794  718           Zygarde50% Forme    Dragon  Ground  108     100      121   \n",
       "795  719                    Diancie      Rock   Fairy   50     100      150   \n",
       "796  719        DiancieMega Diancie      Rock   Fairy   50     160      110   \n",
       "797  720        HoopaHoopa Confined   Psychic   Ghost   80     110       60   \n",
       "798  720         HoopaHoopa Unbound   Psychic    Dark   80     160       60   \n",
       "799  721                  Volcanion      Fire   Water   80     110      120   \n",
       "\n",
       "     Sp. Atk  Sp. Def  Speed  Generation  Legendary  \n",
       "0         65       65     45           1      False  \n",
       "1         80       80     60           1      False  \n",
       "2        100      100     80           1      False  \n",
       "3        122      120     80           1      False  \n",
       "4         60       50     65           1      False  \n",
       "5         80       65     80           1      False  \n",
       "6        109       85    100           1      False  \n",
       "7        130       85    100           1      False  \n",
       "8        159      115    100           1      False  \n",
       "9         50       64     43           1      False  \n",
       "10        65       80     58           1      False  \n",
       "11        85      105     78           1      False  \n",
       "12       135      115     78           1      False  \n",
       "13        20       20     45           1      False  \n",
       "14        25       25     30           1      False  \n",
       "15        90       80     70           1      False  \n",
       "16        20       20     50           1      False  \n",
       "17        25       25     35           1      False  \n",
       "18        45       80     75           1      False  \n",
       "19        15       80    145           1      False  \n",
       "20        35       35     56           1      False  \n",
       "21        50       50     71           1      False  \n",
       "22        70       70    101           1      False  \n",
       "23       135       80    121           1      False  \n",
       "24        25       35     72           1      False  \n",
       "25        50       70     97           1      False  \n",
       "26        31       31     70           1      False  \n",
       "27        61       61    100           1      False  \n",
       "28        40       54     55           1      False  \n",
       "29        65       79     80           1      False  \n",
       "..       ...      ...    ...         ...        ...  \n",
       "770      110      130     60           6      False  \n",
       "771       74       63    118           6      False  \n",
       "772       81       67    101           6      False  \n",
       "773       50      150     50           6      False  \n",
       "774       55       75     40           6      False  \n",
       "775       83      113     60           6      False  \n",
       "776      110      150     80           6      False  \n",
       "777       80       87     75           6      False  \n",
       "778       50       60     38           6      False  \n",
       "779       65       82     56           6      False  \n",
       "780       44       55     51           6      False  \n",
       "781       44       55     56           6      False  \n",
       "782       44       55     46           6      False  \n",
       "783       44       55     41           6      False  \n",
       "784       58       75     84           6      False  \n",
       "785       58       75     99           6      False  \n",
       "786       58       75     69           6      False  \n",
       "787       58       75     54           6      False  \n",
       "788       32       35     28           6      False  \n",
       "789       44       46     28           6      False  \n",
       "790       45       40     55           6      False  \n",
       "791       97       80    123           6      False  \n",
       "792      131       98     99           6       True  \n",
       "793      131       98     99           6       True  \n",
       "794       81       95     95           6       True  \n",
       "795      100      150     50           6       True  \n",
       "796      160      110    110           6       True  \n",
       "797      150      130     70           6       True  \n",
       "798      170      130     80           6       True  \n",
       "799      130       90     70           6       True  \n",
       "\n",
       "[800 rows x 12 columns]"
      ]
     },
     "execution_count": 56,
     "metadata": {},
     "output_type": "execute_result"
    }
   ],
   "source": [
    "df.sort_values(['Type 1', 'HP'], ascending=[1,0])\n",
    "\n",
    "df"
   ]
  },
  {
   "cell_type": "markdown",
   "metadata": {},
   "source": [
    "## Making changes to the data"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 57,
   "metadata": {},
   "outputs": [
    {
     "data": {
      "text/html": [
       "<div>\n",
       "<style scoped>\n",
       "    .dataframe tbody tr th:only-of-type {\n",
       "        vertical-align: middle;\n",
       "    }\n",
       "\n",
       "    .dataframe tbody tr th {\n",
       "        vertical-align: top;\n",
       "    }\n",
       "\n",
       "    .dataframe thead th {\n",
       "        text-align: right;\n",
       "    }\n",
       "</style>\n",
       "<table border=\"1\" class=\"dataframe\">\n",
       "  <thead>\n",
       "    <tr style=\"text-align: right;\">\n",
       "      <th></th>\n",
       "      <th>#</th>\n",
       "      <th>Name</th>\n",
       "      <th>Type 1</th>\n",
       "      <th>Type 2</th>\n",
       "      <th>Total</th>\n",
       "      <th>HP</th>\n",
       "      <th>Attack</th>\n",
       "      <th>Defense</th>\n",
       "      <th>Sp. Atk</th>\n",
       "      <th>Sp. Def</th>\n",
       "      <th>Speed</th>\n",
       "      <th>Generation</th>\n",
       "      <th>Legendary</th>\n",
       "    </tr>\n",
       "  </thead>\n",
       "  <tbody>\n",
       "    <tr>\n",
       "      <th>0</th>\n",
       "      <td>1</td>\n",
       "      <td>Bulbasaur</td>\n",
       "      <td>Grass</td>\n",
       "      <td>Poison</td>\n",
       "      <td>318</td>\n",
       "      <td>45</td>\n",
       "      <td>49</td>\n",
       "      <td>49</td>\n",
       "      <td>65</td>\n",
       "      <td>65</td>\n",
       "      <td>45</td>\n",
       "      <td>1</td>\n",
       "      <td>False</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>1</th>\n",
       "      <td>2</td>\n",
       "      <td>Ivysaur</td>\n",
       "      <td>Grass</td>\n",
       "      <td>Poison</td>\n",
       "      <td>405</td>\n",
       "      <td>60</td>\n",
       "      <td>62</td>\n",
       "      <td>63</td>\n",
       "      <td>80</td>\n",
       "      <td>80</td>\n",
       "      <td>60</td>\n",
       "      <td>1</td>\n",
       "      <td>False</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>2</th>\n",
       "      <td>3</td>\n",
       "      <td>Venusaur</td>\n",
       "      <td>Grass</td>\n",
       "      <td>Poison</td>\n",
       "      <td>525</td>\n",
       "      <td>80</td>\n",
       "      <td>82</td>\n",
       "      <td>83</td>\n",
       "      <td>100</td>\n",
       "      <td>100</td>\n",
       "      <td>80</td>\n",
       "      <td>1</td>\n",
       "      <td>False</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>3</th>\n",
       "      <td>3</td>\n",
       "      <td>VenusaurMega Venusaur</td>\n",
       "      <td>Grass</td>\n",
       "      <td>Poison</td>\n",
       "      <td>625</td>\n",
       "      <td>80</td>\n",
       "      <td>100</td>\n",
       "      <td>123</td>\n",
       "      <td>122</td>\n",
       "      <td>120</td>\n",
       "      <td>80</td>\n",
       "      <td>1</td>\n",
       "      <td>False</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>4</th>\n",
       "      <td>4</td>\n",
       "      <td>Charmander</td>\n",
       "      <td>Fire</td>\n",
       "      <td>NaN</td>\n",
       "      <td>309</td>\n",
       "      <td>39</td>\n",
       "      <td>52</td>\n",
       "      <td>43</td>\n",
       "      <td>60</td>\n",
       "      <td>50</td>\n",
       "      <td>65</td>\n",
       "      <td>1</td>\n",
       "      <td>False</td>\n",
       "    </tr>\n",
       "  </tbody>\n",
       "</table>\n",
       "</div>"
      ],
      "text/plain": [
       "   #                   Name Type 1  Type 2  Total  HP  Attack  Defense  \\\n",
       "0  1              Bulbasaur  Grass  Poison    318  45      49       49   \n",
       "1  2                Ivysaur  Grass  Poison    405  60      62       63   \n",
       "2  3               Venusaur  Grass  Poison    525  80      82       83   \n",
       "3  3  VenusaurMega Venusaur  Grass  Poison    625  80     100      123   \n",
       "4  4             Charmander   Fire     NaN    309  39      52       43   \n",
       "\n",
       "   Sp. Atk  Sp. Def  Speed  Generation  Legendary  \n",
       "0       65       65     45           1      False  \n",
       "1       80       80     60           1      False  \n",
       "2      100      100     80           1      False  \n",
       "3      122      120     80           1      False  \n",
       "4       60       50     65           1      False  "
      ]
     },
     "execution_count": 57,
     "metadata": {},
     "output_type": "execute_result"
    }
   ],
   "source": [
    "#df['Total'] = df['HP'] + df['Attack'] + df['Defense'] + df['Sp. Atk'] + df['Sp. Def'] + df['Speed']\n",
    "\n",
    "# df = df.drop(columns=['Total'])\n",
    "\n",
    "df['Total'] = df.iloc[:, 4:10].sum(axis=1)\n",
    "\n",
    "cols = list(df.columns)\n",
    "df = df[cols[0:4] + [cols[-1]]+cols[4:12]]\n",
    "\n",
    "df.head(5)"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 58,
   "metadata": {},
   "outputs": [
    {
     "data": {
      "text/plain": [
       "318"
      ]
     },
     "execution_count": 58,
     "metadata": {},
     "output_type": "execute_result"
    }
   ],
   "source": [
    "45+49+49+65+65+45"
   ]
  },
  {
   "cell_type": "markdown",
   "metadata": {},
   "source": [
    "## Saving our Data (Exporting into Desired Format)"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 59,
   "metadata": {},
   "outputs": [],
   "source": [
    "# df.to_csv('modified.csv', index=False)\n",
    "\n",
    "#df.to_excel('modified.xlsx', index=False)\n",
    "\n",
    "df.to_csv('modified.txt', index=False, sep='\\t')\n",
    "\n",
    "\n"
   ]
  },
  {
   "cell_type": "markdown",
   "metadata": {},
   "source": [
    "## Filtering Data"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 66,
   "metadata": {},
   "outputs": [],
   "source": [
    "new_df = df.loc[(df['Type 1'] == 'Grass') & (df['Type 2'] == 'Poison') & (df['HP'] > 70)]\n",
    "\n",
    "new_df.reset_index(drop=True, inplace=True)\n",
    "\n",
    "new_df\n",
    "\n",
    "new_df.to_csv('filtered.csv')\n"
   ]
  },
  {
   "cell_type": "markdown",
   "metadata": {},
   "source": [
    "\n",
    "## Conditional Changes"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 31,
   "metadata": {},
   "outputs": [
    {
     "data": {
      "text/html": [
       "<div>\n",
       "<style scoped>\n",
       "    .dataframe tbody tr th:only-of-type {\n",
       "        vertical-align: middle;\n",
       "    }\n",
       "\n",
       "    .dataframe tbody tr th {\n",
       "        vertical-align: top;\n",
       "    }\n",
       "\n",
       "    .dataframe thead th {\n",
       "        text-align: right;\n",
       "    }\n",
       "</style>\n",
       "<table border=\"1\" class=\"dataframe\">\n",
       "  <thead>\n",
       "    <tr style=\"text-align: right;\">\n",
       "      <th></th>\n",
       "      <th>#</th>\n",
       "      <th>Name</th>\n",
       "      <th>Type 1</th>\n",
       "      <th>Type 2</th>\n",
       "      <th>Total</th>\n",
       "      <th>HP</th>\n",
       "      <th>Attack</th>\n",
       "      <th>Defense</th>\n",
       "      <th>Sp. Atk</th>\n",
       "      <th>Sp. Def</th>\n",
       "      <th>Speed</th>\n",
       "      <th>Generation</th>\n",
       "      <th>Legendary</th>\n",
       "    </tr>\n",
       "  </thead>\n",
       "  <tbody>\n",
       "    <tr>\n",
       "      <th>0</th>\n",
       "      <td>1</td>\n",
       "      <td>Bulbasaur</td>\n",
       "      <td>Grass</td>\n",
       "      <td>Poison</td>\n",
       "      <td>318</td>\n",
       "      <td>45</td>\n",
       "      <td>49</td>\n",
       "      <td>49</td>\n",
       "      <td>65</td>\n",
       "      <td>65</td>\n",
       "      <td>45</td>\n",
       "      <td>1</td>\n",
       "      <td>False</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>1</th>\n",
       "      <td>2</td>\n",
       "      <td>Ivysaur</td>\n",
       "      <td>Grass</td>\n",
       "      <td>Poison</td>\n",
       "      <td>405</td>\n",
       "      <td>60</td>\n",
       "      <td>62</td>\n",
       "      <td>63</td>\n",
       "      <td>80</td>\n",
       "      <td>80</td>\n",
       "      <td>60</td>\n",
       "      <td>1</td>\n",
       "      <td>False</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>2</th>\n",
       "      <td>3</td>\n",
       "      <td>Venusaur</td>\n",
       "      <td>Grass</td>\n",
       "      <td>Poison</td>\n",
       "      <td>525</td>\n",
       "      <td>80</td>\n",
       "      <td>82</td>\n",
       "      <td>83</td>\n",
       "      <td>100</td>\n",
       "      <td>100</td>\n",
       "      <td>80</td>\n",
       "      <td>1</td>\n",
       "      <td>False</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>3</th>\n",
       "      <td>3</td>\n",
       "      <td>VenusaurMega Venusaur</td>\n",
       "      <td>Grass</td>\n",
       "      <td>Poison</td>\n",
       "      <td>625</td>\n",
       "      <td>80</td>\n",
       "      <td>100</td>\n",
       "      <td>123</td>\n",
       "      <td>122</td>\n",
       "      <td>120</td>\n",
       "      <td>80</td>\n",
       "      <td>1</td>\n",
       "      <td>False</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>4</th>\n",
       "      <td>4</td>\n",
       "      <td>Charmander</td>\n",
       "      <td>Fire</td>\n",
       "      <td>NaN</td>\n",
       "      <td>309</td>\n",
       "      <td>39</td>\n",
       "      <td>52</td>\n",
       "      <td>43</td>\n",
       "      <td>60</td>\n",
       "      <td>50</td>\n",
       "      <td>65</td>\n",
       "      <td>1</td>\n",
       "      <td>False</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>5</th>\n",
       "      <td>5</td>\n",
       "      <td>Charmeleon</td>\n",
       "      <td>Fire</td>\n",
       "      <td>NaN</td>\n",
       "      <td>405</td>\n",
       "      <td>58</td>\n",
       "      <td>64</td>\n",
       "      <td>58</td>\n",
       "      <td>80</td>\n",
       "      <td>65</td>\n",
       "      <td>80</td>\n",
       "      <td>1</td>\n",
       "      <td>False</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>6</th>\n",
       "      <td>6</td>\n",
       "      <td>Charizard</td>\n",
       "      <td>Fire</td>\n",
       "      <td>Flying</td>\n",
       "      <td>534</td>\n",
       "      <td>78</td>\n",
       "      <td>84</td>\n",
       "      <td>78</td>\n",
       "      <td>109</td>\n",
       "      <td>85</td>\n",
       "      <td>100</td>\n",
       "      <td>1</td>\n",
       "      <td>False</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>7</th>\n",
       "      <td>6</td>\n",
       "      <td>CharizardMega Charizard X</td>\n",
       "      <td>Fire</td>\n",
       "      <td>Dragon</td>\n",
       "      <td>634</td>\n",
       "      <td>78</td>\n",
       "      <td>130</td>\n",
       "      <td>111</td>\n",
       "      <td>130</td>\n",
       "      <td>85</td>\n",
       "      <td>100</td>\n",
       "      <td>1</td>\n",
       "      <td>False</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>8</th>\n",
       "      <td>6</td>\n",
       "      <td>CharizardMega Charizard Y</td>\n",
       "      <td>Fire</td>\n",
       "      <td>Flying</td>\n",
       "      <td>634</td>\n",
       "      <td>78</td>\n",
       "      <td>104</td>\n",
       "      <td>78</td>\n",
       "      <td>159</td>\n",
       "      <td>115</td>\n",
       "      <td>100</td>\n",
       "      <td>1</td>\n",
       "      <td>False</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>9</th>\n",
       "      <td>7</td>\n",
       "      <td>Squirtle</td>\n",
       "      <td>Water</td>\n",
       "      <td>NaN</td>\n",
       "      <td>314</td>\n",
       "      <td>44</td>\n",
       "      <td>48</td>\n",
       "      <td>65</td>\n",
       "      <td>50</td>\n",
       "      <td>64</td>\n",
       "      <td>43</td>\n",
       "      <td>1</td>\n",
       "      <td>False</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>10</th>\n",
       "      <td>8</td>\n",
       "      <td>Wartortle</td>\n",
       "      <td>Water</td>\n",
       "      <td>NaN</td>\n",
       "      <td>405</td>\n",
       "      <td>59</td>\n",
       "      <td>63</td>\n",
       "      <td>80</td>\n",
       "      <td>65</td>\n",
       "      <td>80</td>\n",
       "      <td>58</td>\n",
       "      <td>1</td>\n",
       "      <td>False</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>11</th>\n",
       "      <td>9</td>\n",
       "      <td>Blastoise</td>\n",
       "      <td>Water</td>\n",
       "      <td>NaN</td>\n",
       "      <td>530</td>\n",
       "      <td>79</td>\n",
       "      <td>83</td>\n",
       "      <td>100</td>\n",
       "      <td>85</td>\n",
       "      <td>105</td>\n",
       "      <td>78</td>\n",
       "      <td>1</td>\n",
       "      <td>False</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>12</th>\n",
       "      <td>9</td>\n",
       "      <td>BlastoiseMega Blastoise</td>\n",
       "      <td>Water</td>\n",
       "      <td>NaN</td>\n",
       "      <td>630</td>\n",
       "      <td>79</td>\n",
       "      <td>103</td>\n",
       "      <td>120</td>\n",
       "      <td>135</td>\n",
       "      <td>115</td>\n",
       "      <td>78</td>\n",
       "      <td>1</td>\n",
       "      <td>False</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>13</th>\n",
       "      <td>10</td>\n",
       "      <td>Caterpie</td>\n",
       "      <td>Bug</td>\n",
       "      <td>NaN</td>\n",
       "      <td>195</td>\n",
       "      <td>45</td>\n",
       "      <td>30</td>\n",
       "      <td>35</td>\n",
       "      <td>20</td>\n",
       "      <td>20</td>\n",
       "      <td>45</td>\n",
       "      <td>1</td>\n",
       "      <td>False</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>14</th>\n",
       "      <td>11</td>\n",
       "      <td>Metapod</td>\n",
       "      <td>Bug</td>\n",
       "      <td>NaN</td>\n",
       "      <td>205</td>\n",
       "      <td>50</td>\n",
       "      <td>20</td>\n",
       "      <td>55</td>\n",
       "      <td>25</td>\n",
       "      <td>25</td>\n",
       "      <td>30</td>\n",
       "      <td>1</td>\n",
       "      <td>False</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>15</th>\n",
       "      <td>12</td>\n",
       "      <td>Butterfree</td>\n",
       "      <td>Bug</td>\n",
       "      <td>Flying</td>\n",
       "      <td>395</td>\n",
       "      <td>60</td>\n",
       "      <td>45</td>\n",
       "      <td>50</td>\n",
       "      <td>90</td>\n",
       "      <td>80</td>\n",
       "      <td>70</td>\n",
       "      <td>1</td>\n",
       "      <td>False</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>16</th>\n",
       "      <td>13</td>\n",
       "      <td>Weedle</td>\n",
       "      <td>Bug</td>\n",
       "      <td>Poison</td>\n",
       "      <td>195</td>\n",
       "      <td>40</td>\n",
       "      <td>35</td>\n",
       "      <td>30</td>\n",
       "      <td>20</td>\n",
       "      <td>20</td>\n",
       "      <td>50</td>\n",
       "      <td>1</td>\n",
       "      <td>False</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>17</th>\n",
       "      <td>14</td>\n",
       "      <td>Kakuna</td>\n",
       "      <td>Bug</td>\n",
       "      <td>Poison</td>\n",
       "      <td>205</td>\n",
       "      <td>45</td>\n",
       "      <td>25</td>\n",
       "      <td>50</td>\n",
       "      <td>25</td>\n",
       "      <td>25</td>\n",
       "      <td>35</td>\n",
       "      <td>1</td>\n",
       "      <td>False</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>18</th>\n",
       "      <td>15</td>\n",
       "      <td>Beedrill</td>\n",
       "      <td>Bug</td>\n",
       "      <td>Poison</td>\n",
       "      <td>395</td>\n",
       "      <td>65</td>\n",
       "      <td>90</td>\n",
       "      <td>40</td>\n",
       "      <td>45</td>\n",
       "      <td>80</td>\n",
       "      <td>75</td>\n",
       "      <td>1</td>\n",
       "      <td>False</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>19</th>\n",
       "      <td>15</td>\n",
       "      <td>BeedrillMega Beedrill</td>\n",
       "      <td>Bug</td>\n",
       "      <td>Poison</td>\n",
       "      <td>495</td>\n",
       "      <td>65</td>\n",
       "      <td>150</td>\n",
       "      <td>40</td>\n",
       "      <td>15</td>\n",
       "      <td>80</td>\n",
       "      <td>145</td>\n",
       "      <td>1</td>\n",
       "      <td>False</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>20</th>\n",
       "      <td>16</td>\n",
       "      <td>Pidgey</td>\n",
       "      <td>Normal</td>\n",
       "      <td>Flying</td>\n",
       "      <td>251</td>\n",
       "      <td>40</td>\n",
       "      <td>45</td>\n",
       "      <td>40</td>\n",
       "      <td>35</td>\n",
       "      <td>35</td>\n",
       "      <td>56</td>\n",
       "      <td>1</td>\n",
       "      <td>False</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>21</th>\n",
       "      <td>17</td>\n",
       "      <td>Pidgeotto</td>\n",
       "      <td>Normal</td>\n",
       "      <td>Flying</td>\n",
       "      <td>349</td>\n",
       "      <td>63</td>\n",
       "      <td>60</td>\n",
       "      <td>55</td>\n",
       "      <td>50</td>\n",
       "      <td>50</td>\n",
       "      <td>71</td>\n",
       "      <td>1</td>\n",
       "      <td>False</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>22</th>\n",
       "      <td>18</td>\n",
       "      <td>Pidgeot</td>\n",
       "      <td>Normal</td>\n",
       "      <td>Flying</td>\n",
       "      <td>479</td>\n",
       "      <td>83</td>\n",
       "      <td>80</td>\n",
       "      <td>75</td>\n",
       "      <td>70</td>\n",
       "      <td>70</td>\n",
       "      <td>101</td>\n",
       "      <td>1</td>\n",
       "      <td>False</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>23</th>\n",
       "      <td>18</td>\n",
       "      <td>PidgeotMega Pidgeot</td>\n",
       "      <td>Normal</td>\n",
       "      <td>Flying</td>\n",
       "      <td>579</td>\n",
       "      <td>83</td>\n",
       "      <td>80</td>\n",
       "      <td>80</td>\n",
       "      <td>135</td>\n",
       "      <td>80</td>\n",
       "      <td>121</td>\n",
       "      <td>1</td>\n",
       "      <td>False</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>24</th>\n",
       "      <td>19</td>\n",
       "      <td>Rattata</td>\n",
       "      <td>Normal</td>\n",
       "      <td>NaN</td>\n",
       "      <td>253</td>\n",
       "      <td>30</td>\n",
       "      <td>56</td>\n",
       "      <td>35</td>\n",
       "      <td>25</td>\n",
       "      <td>35</td>\n",
       "      <td>72</td>\n",
       "      <td>1</td>\n",
       "      <td>False</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>25</th>\n",
       "      <td>20</td>\n",
       "      <td>Raticate</td>\n",
       "      <td>Normal</td>\n",
       "      <td>NaN</td>\n",
       "      <td>413</td>\n",
       "      <td>55</td>\n",
       "      <td>81</td>\n",
       "      <td>60</td>\n",
       "      <td>50</td>\n",
       "      <td>70</td>\n",
       "      <td>97</td>\n",
       "      <td>1</td>\n",
       "      <td>False</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>26</th>\n",
       "      <td>21</td>\n",
       "      <td>Spearow</td>\n",
       "      <td>Normal</td>\n",
       "      <td>Flying</td>\n",
       "      <td>262</td>\n",
       "      <td>40</td>\n",
       "      <td>60</td>\n",
       "      <td>30</td>\n",
       "      <td>31</td>\n",
       "      <td>31</td>\n",
       "      <td>70</td>\n",
       "      <td>1</td>\n",
       "      <td>False</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>27</th>\n",
       "      <td>22</td>\n",
       "      <td>Fearow</td>\n",
       "      <td>Normal</td>\n",
       "      <td>Flying</td>\n",
       "      <td>442</td>\n",
       "      <td>65</td>\n",
       "      <td>90</td>\n",
       "      <td>65</td>\n",
       "      <td>61</td>\n",
       "      <td>61</td>\n",
       "      <td>100</td>\n",
       "      <td>1</td>\n",
       "      <td>False</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>28</th>\n",
       "      <td>23</td>\n",
       "      <td>Ekans</td>\n",
       "      <td>Poison</td>\n",
       "      <td>NaN</td>\n",
       "      <td>288</td>\n",
       "      <td>35</td>\n",
       "      <td>60</td>\n",
       "      <td>44</td>\n",
       "      <td>40</td>\n",
       "      <td>54</td>\n",
       "      <td>55</td>\n",
       "      <td>1</td>\n",
       "      <td>False</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>29</th>\n",
       "      <td>24</td>\n",
       "      <td>Arbok</td>\n",
       "      <td>Poison</td>\n",
       "      <td>NaN</td>\n",
       "      <td>438</td>\n",
       "      <td>60</td>\n",
       "      <td>85</td>\n",
       "      <td>69</td>\n",
       "      <td>65</td>\n",
       "      <td>79</td>\n",
       "      <td>80</td>\n",
       "      <td>1</td>\n",
       "      <td>False</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>...</th>\n",
       "      <td>...</td>\n",
       "      <td>...</td>\n",
       "      <td>...</td>\n",
       "      <td>...</td>\n",
       "      <td>...</td>\n",
       "      <td>...</td>\n",
       "      <td>...</td>\n",
       "      <td>...</td>\n",
       "      <td>...</td>\n",
       "      <td>...</td>\n",
       "      <td>...</td>\n",
       "      <td>...</td>\n",
       "      <td>...</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>770</th>\n",
       "      <td>700</td>\n",
       "      <td>Sylveon</td>\n",
       "      <td>Fairy</td>\n",
       "      <td>NaN</td>\n",
       "      <td>525</td>\n",
       "      <td>95</td>\n",
       "      <td>65</td>\n",
       "      <td>65</td>\n",
       "      <td>110</td>\n",
       "      <td>130</td>\n",
       "      <td>60</td>\n",
       "      <td>6</td>\n",
       "      <td>False</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>771</th>\n",
       "      <td>701</td>\n",
       "      <td>Hawlucha</td>\n",
       "      <td>Fighting</td>\n",
       "      <td>Flying</td>\n",
       "      <td>500</td>\n",
       "      <td>78</td>\n",
       "      <td>92</td>\n",
       "      <td>75</td>\n",
       "      <td>74</td>\n",
       "      <td>63</td>\n",
       "      <td>118</td>\n",
       "      <td>6</td>\n",
       "      <td>False</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>772</th>\n",
       "      <td>702</td>\n",
       "      <td>Dedenne</td>\n",
       "      <td>Electric</td>\n",
       "      <td>Fairy</td>\n",
       "      <td>431</td>\n",
       "      <td>67</td>\n",
       "      <td>58</td>\n",
       "      <td>57</td>\n",
       "      <td>81</td>\n",
       "      <td>67</td>\n",
       "      <td>101</td>\n",
       "      <td>6</td>\n",
       "      <td>False</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>773</th>\n",
       "      <td>703</td>\n",
       "      <td>Carbink</td>\n",
       "      <td>Rock</td>\n",
       "      <td>Fairy</td>\n",
       "      <td>500</td>\n",
       "      <td>50</td>\n",
       "      <td>50</td>\n",
       "      <td>150</td>\n",
       "      <td>50</td>\n",
       "      <td>150</td>\n",
       "      <td>50</td>\n",
       "      <td>6</td>\n",
       "      <td>False</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>774</th>\n",
       "      <td>704</td>\n",
       "      <td>Goomy</td>\n",
       "      <td>Dragon</td>\n",
       "      <td>NaN</td>\n",
       "      <td>300</td>\n",
       "      <td>45</td>\n",
       "      <td>50</td>\n",
       "      <td>35</td>\n",
       "      <td>55</td>\n",
       "      <td>75</td>\n",
       "      <td>40</td>\n",
       "      <td>6</td>\n",
       "      <td>False</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>775</th>\n",
       "      <td>705</td>\n",
       "      <td>Sliggoo</td>\n",
       "      <td>Dragon</td>\n",
       "      <td>NaN</td>\n",
       "      <td>452</td>\n",
       "      <td>68</td>\n",
       "      <td>75</td>\n",
       "      <td>53</td>\n",
       "      <td>83</td>\n",
       "      <td>113</td>\n",
       "      <td>60</td>\n",
       "      <td>6</td>\n",
       "      <td>False</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>776</th>\n",
       "      <td>706</td>\n",
       "      <td>Goodra</td>\n",
       "      <td>Dragon</td>\n",
       "      <td>NaN</td>\n",
       "      <td>600</td>\n",
       "      <td>90</td>\n",
       "      <td>100</td>\n",
       "      <td>70</td>\n",
       "      <td>110</td>\n",
       "      <td>150</td>\n",
       "      <td>80</td>\n",
       "      <td>6</td>\n",
       "      <td>False</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>777</th>\n",
       "      <td>707</td>\n",
       "      <td>Klefki</td>\n",
       "      <td>Steel</td>\n",
       "      <td>Fairy</td>\n",
       "      <td>470</td>\n",
       "      <td>57</td>\n",
       "      <td>80</td>\n",
       "      <td>91</td>\n",
       "      <td>80</td>\n",
       "      <td>87</td>\n",
       "      <td>75</td>\n",
       "      <td>6</td>\n",
       "      <td>False</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>778</th>\n",
       "      <td>708</td>\n",
       "      <td>Phantump</td>\n",
       "      <td>Ghost</td>\n",
       "      <td>Grass</td>\n",
       "      <td>309</td>\n",
       "      <td>43</td>\n",
       "      <td>70</td>\n",
       "      <td>48</td>\n",
       "      <td>50</td>\n",
       "      <td>60</td>\n",
       "      <td>38</td>\n",
       "      <td>6</td>\n",
       "      <td>False</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>779</th>\n",
       "      <td>709</td>\n",
       "      <td>Trevenant</td>\n",
       "      <td>Ghost</td>\n",
       "      <td>Grass</td>\n",
       "      <td>474</td>\n",
       "      <td>85</td>\n",
       "      <td>110</td>\n",
       "      <td>76</td>\n",
       "      <td>65</td>\n",
       "      <td>82</td>\n",
       "      <td>56</td>\n",
       "      <td>6</td>\n",
       "      <td>False</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>780</th>\n",
       "      <td>710</td>\n",
       "      <td>PumpkabooAverage Size</td>\n",
       "      <td>Ghost</td>\n",
       "      <td>Grass</td>\n",
       "      <td>335</td>\n",
       "      <td>49</td>\n",
       "      <td>66</td>\n",
       "      <td>70</td>\n",
       "      <td>44</td>\n",
       "      <td>55</td>\n",
       "      <td>51</td>\n",
       "      <td>6</td>\n",
       "      <td>False</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>781</th>\n",
       "      <td>710</td>\n",
       "      <td>PumpkabooSmall Size</td>\n",
       "      <td>Ghost</td>\n",
       "      <td>Grass</td>\n",
       "      <td>335</td>\n",
       "      <td>44</td>\n",
       "      <td>66</td>\n",
       "      <td>70</td>\n",
       "      <td>44</td>\n",
       "      <td>55</td>\n",
       "      <td>56</td>\n",
       "      <td>6</td>\n",
       "      <td>False</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>782</th>\n",
       "      <td>710</td>\n",
       "      <td>PumpkabooLarge Size</td>\n",
       "      <td>Ghost</td>\n",
       "      <td>Grass</td>\n",
       "      <td>335</td>\n",
       "      <td>54</td>\n",
       "      <td>66</td>\n",
       "      <td>70</td>\n",
       "      <td>44</td>\n",
       "      <td>55</td>\n",
       "      <td>46</td>\n",
       "      <td>6</td>\n",
       "      <td>False</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>783</th>\n",
       "      <td>710</td>\n",
       "      <td>PumpkabooSuper Size</td>\n",
       "      <td>Ghost</td>\n",
       "      <td>Grass</td>\n",
       "      <td>335</td>\n",
       "      <td>59</td>\n",
       "      <td>66</td>\n",
       "      <td>70</td>\n",
       "      <td>44</td>\n",
       "      <td>55</td>\n",
       "      <td>41</td>\n",
       "      <td>6</td>\n",
       "      <td>False</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>784</th>\n",
       "      <td>711</td>\n",
       "      <td>GourgeistAverage Size</td>\n",
       "      <td>Ghost</td>\n",
       "      <td>Grass</td>\n",
       "      <td>494</td>\n",
       "      <td>65</td>\n",
       "      <td>90</td>\n",
       "      <td>122</td>\n",
       "      <td>58</td>\n",
       "      <td>75</td>\n",
       "      <td>84</td>\n",
       "      <td>6</td>\n",
       "      <td>False</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>785</th>\n",
       "      <td>711</td>\n",
       "      <td>GourgeistSmall Size</td>\n",
       "      <td>Ghost</td>\n",
       "      <td>Grass</td>\n",
       "      <td>494</td>\n",
       "      <td>55</td>\n",
       "      <td>85</td>\n",
       "      <td>122</td>\n",
       "      <td>58</td>\n",
       "      <td>75</td>\n",
       "      <td>99</td>\n",
       "      <td>6</td>\n",
       "      <td>False</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>786</th>\n",
       "      <td>711</td>\n",
       "      <td>GourgeistLarge Size</td>\n",
       "      <td>Ghost</td>\n",
       "      <td>Grass</td>\n",
       "      <td>494</td>\n",
       "      <td>75</td>\n",
       "      <td>95</td>\n",
       "      <td>122</td>\n",
       "      <td>58</td>\n",
       "      <td>75</td>\n",
       "      <td>69</td>\n",
       "      <td>6</td>\n",
       "      <td>False</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>787</th>\n",
       "      <td>711</td>\n",
       "      <td>GourgeistSuper Size</td>\n",
       "      <td>Ghost</td>\n",
       "      <td>Grass</td>\n",
       "      <td>494</td>\n",
       "      <td>85</td>\n",
       "      <td>100</td>\n",
       "      <td>122</td>\n",
       "      <td>58</td>\n",
       "      <td>75</td>\n",
       "      <td>54</td>\n",
       "      <td>6</td>\n",
       "      <td>False</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>788</th>\n",
       "      <td>712</td>\n",
       "      <td>Bergmite</td>\n",
       "      <td>Ice</td>\n",
       "      <td>NaN</td>\n",
       "      <td>304</td>\n",
       "      <td>55</td>\n",
       "      <td>69</td>\n",
       "      <td>85</td>\n",
       "      <td>32</td>\n",
       "      <td>35</td>\n",
       "      <td>28</td>\n",
       "      <td>6</td>\n",
       "      <td>False</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>789</th>\n",
       "      <td>713</td>\n",
       "      <td>Avalugg</td>\n",
       "      <td>Ice</td>\n",
       "      <td>NaN</td>\n",
       "      <td>514</td>\n",
       "      <td>95</td>\n",
       "      <td>117</td>\n",
       "      <td>184</td>\n",
       "      <td>44</td>\n",
       "      <td>46</td>\n",
       "      <td>28</td>\n",
       "      <td>6</td>\n",
       "      <td>False</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>790</th>\n",
       "      <td>714</td>\n",
       "      <td>Noibat</td>\n",
       "      <td>Flying</td>\n",
       "      <td>Dragon</td>\n",
       "      <td>245</td>\n",
       "      <td>40</td>\n",
       "      <td>30</td>\n",
       "      <td>35</td>\n",
       "      <td>45</td>\n",
       "      <td>40</td>\n",
       "      <td>55</td>\n",
       "      <td>6</td>\n",
       "      <td>False</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>791</th>\n",
       "      <td>715</td>\n",
       "      <td>Noivern</td>\n",
       "      <td>Flying</td>\n",
       "      <td>Dragon</td>\n",
       "      <td>535</td>\n",
       "      <td>85</td>\n",
       "      <td>70</td>\n",
       "      <td>80</td>\n",
       "      <td>97</td>\n",
       "      <td>80</td>\n",
       "      <td>123</td>\n",
       "      <td>6</td>\n",
       "      <td>False</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>792</th>\n",
       "      <td>716</td>\n",
       "      <td>Xerneas</td>\n",
       "      <td>Fairy</td>\n",
       "      <td>NaN</td>\n",
       "      <td>680</td>\n",
       "      <td>126</td>\n",
       "      <td>131</td>\n",
       "      <td>95</td>\n",
       "      <td>131</td>\n",
       "      <td>98</td>\n",
       "      <td>99</td>\n",
       "      <td>6</td>\n",
       "      <td>True</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>793</th>\n",
       "      <td>717</td>\n",
       "      <td>Yveltal</td>\n",
       "      <td>Dark</td>\n",
       "      <td>Flying</td>\n",
       "      <td>680</td>\n",
       "      <td>126</td>\n",
       "      <td>131</td>\n",
       "      <td>95</td>\n",
       "      <td>131</td>\n",
       "      <td>98</td>\n",
       "      <td>99</td>\n",
       "      <td>6</td>\n",
       "      <td>True</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>794</th>\n",
       "      <td>718</td>\n",
       "      <td>Zygarde50% Forme</td>\n",
       "      <td>Dragon</td>\n",
       "      <td>Ground</td>\n",
       "      <td>600</td>\n",
       "      <td>108</td>\n",
       "      <td>100</td>\n",
       "      <td>121</td>\n",
       "      <td>81</td>\n",
       "      <td>95</td>\n",
       "      <td>95</td>\n",
       "      <td>6</td>\n",
       "      <td>True</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>795</th>\n",
       "      <td>719</td>\n",
       "      <td>Diancie</td>\n",
       "      <td>Rock</td>\n",
       "      <td>Fairy</td>\n",
       "      <td>600</td>\n",
       "      <td>50</td>\n",
       "      <td>100</td>\n",
       "      <td>150</td>\n",
       "      <td>100</td>\n",
       "      <td>150</td>\n",
       "      <td>50</td>\n",
       "      <td>6</td>\n",
       "      <td>True</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>796</th>\n",
       "      <td>719</td>\n",
       "      <td>DiancieMega Diancie</td>\n",
       "      <td>Rock</td>\n",
       "      <td>Fairy</td>\n",
       "      <td>700</td>\n",
       "      <td>50</td>\n",
       "      <td>160</td>\n",
       "      <td>110</td>\n",
       "      <td>160</td>\n",
       "      <td>110</td>\n",
       "      <td>110</td>\n",
       "      <td>6</td>\n",
       "      <td>True</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>797</th>\n",
       "      <td>720</td>\n",
       "      <td>HoopaHoopa Confined</td>\n",
       "      <td>Psychic</td>\n",
       "      <td>Ghost</td>\n",
       "      <td>600</td>\n",
       "      <td>80</td>\n",
       "      <td>110</td>\n",
       "      <td>60</td>\n",
       "      <td>150</td>\n",
       "      <td>130</td>\n",
       "      <td>70</td>\n",
       "      <td>6</td>\n",
       "      <td>True</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>798</th>\n",
       "      <td>720</td>\n",
       "      <td>HoopaHoopa Unbound</td>\n",
       "      <td>Psychic</td>\n",
       "      <td>Dark</td>\n",
       "      <td>680</td>\n",
       "      <td>80</td>\n",
       "      <td>160</td>\n",
       "      <td>60</td>\n",
       "      <td>170</td>\n",
       "      <td>130</td>\n",
       "      <td>80</td>\n",
       "      <td>6</td>\n",
       "      <td>True</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>799</th>\n",
       "      <td>721</td>\n",
       "      <td>Volcanion</td>\n",
       "      <td>Fire</td>\n",
       "      <td>Water</td>\n",
       "      <td>600</td>\n",
       "      <td>80</td>\n",
       "      <td>110</td>\n",
       "      <td>120</td>\n",
       "      <td>130</td>\n",
       "      <td>90</td>\n",
       "      <td>70</td>\n",
       "      <td>6</td>\n",
       "      <td>True</td>\n",
       "    </tr>\n",
       "  </tbody>\n",
       "</table>\n",
       "<p>800 rows × 13 columns</p>\n",
       "</div>"
      ],
      "text/plain": [
       "       #                       Name    Type 1  Type 2  Total   HP  Attack  \\\n",
       "0      1                  Bulbasaur     Grass  Poison    318   45      49   \n",
       "1      2                    Ivysaur     Grass  Poison    405   60      62   \n",
       "2      3                   Venusaur     Grass  Poison    525   80      82   \n",
       "3      3      VenusaurMega Venusaur     Grass  Poison    625   80     100   \n",
       "4      4                 Charmander      Fire     NaN    309   39      52   \n",
       "5      5                 Charmeleon      Fire     NaN    405   58      64   \n",
       "6      6                  Charizard      Fire  Flying    534   78      84   \n",
       "7      6  CharizardMega Charizard X      Fire  Dragon    634   78     130   \n",
       "8      6  CharizardMega Charizard Y      Fire  Flying    634   78     104   \n",
       "9      7                   Squirtle     Water     NaN    314   44      48   \n",
       "10     8                  Wartortle     Water     NaN    405   59      63   \n",
       "11     9                  Blastoise     Water     NaN    530   79      83   \n",
       "12     9    BlastoiseMega Blastoise     Water     NaN    630   79     103   \n",
       "13    10                   Caterpie       Bug     NaN    195   45      30   \n",
       "14    11                    Metapod       Bug     NaN    205   50      20   \n",
       "15    12                 Butterfree       Bug  Flying    395   60      45   \n",
       "16    13                     Weedle       Bug  Poison    195   40      35   \n",
       "17    14                     Kakuna       Bug  Poison    205   45      25   \n",
       "18    15                   Beedrill       Bug  Poison    395   65      90   \n",
       "19    15      BeedrillMega Beedrill       Bug  Poison    495   65     150   \n",
       "20    16                     Pidgey    Normal  Flying    251   40      45   \n",
       "21    17                  Pidgeotto    Normal  Flying    349   63      60   \n",
       "22    18                    Pidgeot    Normal  Flying    479   83      80   \n",
       "23    18        PidgeotMega Pidgeot    Normal  Flying    579   83      80   \n",
       "24    19                    Rattata    Normal     NaN    253   30      56   \n",
       "25    20                   Raticate    Normal     NaN    413   55      81   \n",
       "26    21                    Spearow    Normal  Flying    262   40      60   \n",
       "27    22                     Fearow    Normal  Flying    442   65      90   \n",
       "28    23                      Ekans    Poison     NaN    288   35      60   \n",
       "29    24                      Arbok    Poison     NaN    438   60      85   \n",
       "..   ...                        ...       ...     ...    ...  ...     ...   \n",
       "770  700                    Sylveon     Fairy     NaN    525   95      65   \n",
       "771  701                   Hawlucha  Fighting  Flying    500   78      92   \n",
       "772  702                    Dedenne  Electric   Fairy    431   67      58   \n",
       "773  703                    Carbink      Rock   Fairy    500   50      50   \n",
       "774  704                      Goomy    Dragon     NaN    300   45      50   \n",
       "775  705                    Sliggoo    Dragon     NaN    452   68      75   \n",
       "776  706                     Goodra    Dragon     NaN    600   90     100   \n",
       "777  707                     Klefki     Steel   Fairy    470   57      80   \n",
       "778  708                   Phantump     Ghost   Grass    309   43      70   \n",
       "779  709                  Trevenant     Ghost   Grass    474   85     110   \n",
       "780  710      PumpkabooAverage Size     Ghost   Grass    335   49      66   \n",
       "781  710        PumpkabooSmall Size     Ghost   Grass    335   44      66   \n",
       "782  710        PumpkabooLarge Size     Ghost   Grass    335   54      66   \n",
       "783  710        PumpkabooSuper Size     Ghost   Grass    335   59      66   \n",
       "784  711      GourgeistAverage Size     Ghost   Grass    494   65      90   \n",
       "785  711        GourgeistSmall Size     Ghost   Grass    494   55      85   \n",
       "786  711        GourgeistLarge Size     Ghost   Grass    494   75      95   \n",
       "787  711        GourgeistSuper Size     Ghost   Grass    494   85     100   \n",
       "788  712                   Bergmite       Ice     NaN    304   55      69   \n",
       "789  713                    Avalugg       Ice     NaN    514   95     117   \n",
       "790  714                     Noibat    Flying  Dragon    245   40      30   \n",
       "791  715                    Noivern    Flying  Dragon    535   85      70   \n",
       "792  716                    Xerneas     Fairy     NaN    680  126     131   \n",
       "793  717                    Yveltal      Dark  Flying    680  126     131   \n",
       "794  718           Zygarde50% Forme    Dragon  Ground    600  108     100   \n",
       "795  719                    Diancie      Rock   Fairy    600   50     100   \n",
       "796  719        DiancieMega Diancie      Rock   Fairy    700   50     160   \n",
       "797  720        HoopaHoopa Confined   Psychic   Ghost    600   80     110   \n",
       "798  720         HoopaHoopa Unbound   Psychic    Dark    680   80     160   \n",
       "799  721                  Volcanion      Fire   Water    600   80     110   \n",
       "\n",
       "     Defense  Sp. Atk  Sp. Def  Speed  Generation  Legendary  \n",
       "0         49       65       65     45           1      False  \n",
       "1         63       80       80     60           1      False  \n",
       "2         83      100      100     80           1      False  \n",
       "3        123      122      120     80           1      False  \n",
       "4         43       60       50     65           1      False  \n",
       "5         58       80       65     80           1      False  \n",
       "6         78      109       85    100           1      False  \n",
       "7        111      130       85    100           1      False  \n",
       "8         78      159      115    100           1      False  \n",
       "9         65       50       64     43           1      False  \n",
       "10        80       65       80     58           1      False  \n",
       "11       100       85      105     78           1      False  \n",
       "12       120      135      115     78           1      False  \n",
       "13        35       20       20     45           1      False  \n",
       "14        55       25       25     30           1      False  \n",
       "15        50       90       80     70           1      False  \n",
       "16        30       20       20     50           1      False  \n",
       "17        50       25       25     35           1      False  \n",
       "18        40       45       80     75           1      False  \n",
       "19        40       15       80    145           1      False  \n",
       "20        40       35       35     56           1      False  \n",
       "21        55       50       50     71           1      False  \n",
       "22        75       70       70    101           1      False  \n",
       "23        80      135       80    121           1      False  \n",
       "24        35       25       35     72           1      False  \n",
       "25        60       50       70     97           1      False  \n",
       "26        30       31       31     70           1      False  \n",
       "27        65       61       61    100           1      False  \n",
       "28        44       40       54     55           1      False  \n",
       "29        69       65       79     80           1      False  \n",
       "..       ...      ...      ...    ...         ...        ...  \n",
       "770       65      110      130     60           6      False  \n",
       "771       75       74       63    118           6      False  \n",
       "772       57       81       67    101           6      False  \n",
       "773      150       50      150     50           6      False  \n",
       "774       35       55       75     40           6      False  \n",
       "775       53       83      113     60           6      False  \n",
       "776       70      110      150     80           6      False  \n",
       "777       91       80       87     75           6      False  \n",
       "778       48       50       60     38           6      False  \n",
       "779       76       65       82     56           6      False  \n",
       "780       70       44       55     51           6      False  \n",
       "781       70       44       55     56           6      False  \n",
       "782       70       44       55     46           6      False  \n",
       "783       70       44       55     41           6      False  \n",
       "784      122       58       75     84           6      False  \n",
       "785      122       58       75     99           6      False  \n",
       "786      122       58       75     69           6      False  \n",
       "787      122       58       75     54           6      False  \n",
       "788       85       32       35     28           6      False  \n",
       "789      184       44       46     28           6      False  \n",
       "790       35       45       40     55           6      False  \n",
       "791       80       97       80    123           6      False  \n",
       "792       95      131       98     99           6       True  \n",
       "793       95      131       98     99           6       True  \n",
       "794      121       81       95     95           6       True  \n",
       "795      150      100      150     50           6       True  \n",
       "796      110      160      110    110           6       True  \n",
       "797       60      150      130     70           6       True  \n",
       "798       60      170      130     80           6       True  \n",
       "799      120      130       90     70           6       True  \n",
       "\n",
       "[800 rows x 13 columns]"
      ]
     },
     "execution_count": 31,
     "metadata": {},
     "output_type": "execute_result"
    }
   ],
   "source": [
    "\n",
    "\n",
    "# df.loc[df['Total'] > 500, ['Generation','Legendary']] = ['Test 1', 'Test 2']\n",
    "\n",
    "# df\n",
    "\n",
    "df = pd.read_csv('modified.csv')\n",
    "\n",
    "df"
   ]
  },
  {
   "cell_type": "markdown",
   "metadata": {},
   "source": [
    "## Aggregate Statistics (Groupby)\n"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 105,
   "metadata": {},
   "outputs": [
    {
     "data": {
      "text/plain": [
       "Type 1    Type 2  \n",
       "Bug       Electric     2\n",
       "          Fighting     2\n",
       "          Fire         2\n",
       "          Flying      14\n",
       "          Ghost        1\n",
       "          Grass        6\n",
       "          Ground       2\n",
       "          Poison      12\n",
       "          Rock         3\n",
       "          Steel        7\n",
       "          Water        1\n",
       "Dark      Dragon       3\n",
       "          Fighting     2\n",
       "          Fire         3\n",
       "          Flying       5\n",
       "          Ghost        2\n",
       "          Ice          2\n",
       "          Psychic      2\n",
       "          Steel        2\n",
       "Dragon    Electric     1\n",
       "          Fairy        1\n",
       "          Fire         1\n",
       "          Flying       6\n",
       "          Ground       5\n",
       "          Ice          3\n",
       "          Psychic      4\n",
       "Electric  Dragon       1\n",
       "          Fairy        1\n",
       "          Fire         1\n",
       "          Flying       5\n",
       "                      ..\n",
       "Rock      Fighting     1\n",
       "          Flying       4\n",
       "          Grass        2\n",
       "          Ground       6\n",
       "          Ice          2\n",
       "          Psychic      2\n",
       "          Steel        3\n",
       "          Water        6\n",
       "Steel     Dragon       1\n",
       "          Fairy        3\n",
       "          Fighting     1\n",
       "          Flying       1\n",
       "          Ghost        4\n",
       "          Ground       2\n",
       "          Psychic      7\n",
       "          Rock         3\n",
       "Water     Dark         6\n",
       "          Dragon       2\n",
       "          Electric     2\n",
       "          Fairy        2\n",
       "          Fighting     3\n",
       "          Flying       7\n",
       "          Ghost        2\n",
       "          Grass        3\n",
       "          Ground      10\n",
       "          Ice          3\n",
       "          Poison       3\n",
       "          Psychic      5\n",
       "          Rock         4\n",
       "          Steel        1\n",
       "Name: count, Length: 136, dtype: int64"
      ]
     },
     "execution_count": 105,
     "metadata": {},
     "output_type": "execute_result"
    }
   ],
   "source": [
    "df = pd.read_csv('modified.csv')\n",
    "\n",
    "df['count'] = 1\n",
    "\n",
    "df.groupby(['Type 1', 'Type 2']).count()['count']\n",
    "\n",
    "\n",
    "\n",
    "\n"
   ]
  },
  {
   "cell_type": "markdown",
   "metadata": {},
   "source": [
    "## Working with large amounts of data\n",
    "\n"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 115,
   "metadata": {},
   "outputs": [
    {
     "name": "stdout",
     "output_type": "stream",
     "text": [
      "   #                   Name Type 1  Type 2  Total  HP  Attack  Defense  \\\n",
      "0  1              Bulbasaur  Grass  Poison    318  45      49       49   \n",
      "1  2                Ivysaur  Grass  Poison    405  60      62       63   \n",
      "2  3               Venusaur  Grass  Poison    525  80      82       83   \n",
      "3  3  VenusaurMega Venusaur  Grass  Poison    625  80     100      123   \n",
      "4  4             Charmander   Fire     NaN    309  39      52       43   \n",
      "\n",
      "   Sp. Atk  Sp. Def  Speed  Generation  Legendary  \n",
      "0       65       65     45           1      False  \n",
      "1       80       80     60           1      False  \n",
      "2      100      100     80           1      False  \n",
      "3      122      120     80           1      False  \n",
      "4       60       50     65           1      False  \n",
      "   #                       Name Type 1  Type 2  Total  HP  Attack  Defense  \\\n",
      "5  5                 Charmeleon   Fire     NaN    405  58      64       58   \n",
      "6  6                  Charizard   Fire  Flying    534  78      84       78   \n",
      "7  6  CharizardMega Charizard X   Fire  Dragon    634  78     130      111   \n",
      "8  6  CharizardMega Charizard Y   Fire  Flying    634  78     104       78   \n",
      "9  7                   Squirtle  Water     NaN    314  44      48       65   \n",
      "\n",
      "   Sp. Atk  Sp. Def  Speed  Generation  Legendary  \n",
      "5       80       65     80           1      False  \n",
      "6      109       85    100           1      False  \n",
      "7      130       85    100           1      False  \n",
      "8      159      115    100           1      False  \n",
      "9       50       64     43           1      False  \n",
      "     #                     Name Type 1  Type 2  Total  HP  Attack  Defense  \\\n",
      "10   8                Wartortle  Water     NaN    405  59      63       80   \n",
      "11   9                Blastoise  Water     NaN    530  79      83      100   \n",
      "12   9  BlastoiseMega Blastoise  Water     NaN    630  79     103      120   \n",
      "13  10                 Caterpie    Bug     NaN    195  45      30       35   \n",
      "14  11                  Metapod    Bug     NaN    205  50      20       55   \n",
      "\n",
      "    Sp. Atk  Sp. Def  Speed  Generation  Legendary  \n",
      "10       65       80     58           1      False  \n",
      "11       85      105     78           1      False  \n",
      "12      135      115     78           1      False  \n",
      "13       20       20     45           1      False  \n",
      "14       25       25     30           1      False  \n",
      "     #                   Name Type 1  Type 2  Total  HP  Attack  Defense  \\\n",
      "15  12             Butterfree    Bug  Flying    395  60      45       50   \n",
      "16  13                 Weedle    Bug  Poison    195  40      35       30   \n",
      "17  14                 Kakuna    Bug  Poison    205  45      25       50   \n",
      "18  15               Beedrill    Bug  Poison    395  65      90       40   \n",
      "19  15  BeedrillMega Beedrill    Bug  Poison    495  65     150       40   \n",
      "\n",
      "    Sp. Atk  Sp. Def  Speed  Generation  Legendary  \n",
      "15       90       80     70           1      False  \n",
      "16       20       20     50           1      False  \n",
      "17       25       25     35           1      False  \n",
      "18       45       80     75           1      False  \n",
      "19       15       80    145           1      False  \n",
      "     #                 Name  Type 1  Type 2  Total  HP  Attack  Defense  \\\n",
      "20  16               Pidgey  Normal  Flying    251  40      45       40   \n",
      "21  17            Pidgeotto  Normal  Flying    349  63      60       55   \n",
      "22  18              Pidgeot  Normal  Flying    479  83      80       75   \n",
      "23  18  PidgeotMega Pidgeot  Normal  Flying    579  83      80       80   \n",
      "24  19              Rattata  Normal     NaN    253  30      56       35   \n",
      "\n",
      "    Sp. Atk  Sp. Def  Speed  Generation  Legendary  \n",
      "20       35       35     56           1      False  \n",
      "21       50       50     71           1      False  \n",
      "22       70       70    101           1      False  \n",
      "23      135       80    121           1      False  \n",
      "24       25       35     72           1      False  \n",
      "     #      Name  Type 1  Type 2  Total  HP  Attack  Defense  Sp. Atk  \\\n",
      "25  20  Raticate  Normal     NaN    413  55      81       60       50   \n",
      "26  21   Spearow  Normal  Flying    262  40      60       30       31   \n",
      "27  22    Fearow  Normal  Flying    442  65      90       65       61   \n",
      "28  23     Ekans  Poison     NaN    288  35      60       44       40   \n",
      "29  24     Arbok  Poison     NaN    438  60      85       69       65   \n",
      "\n",
      "    Sp. Def  Speed  Generation  Legendary  \n",
      "25       70     97           1      False  \n",
      "26       31     70           1      False  \n",
      "27       61    100           1      False  \n",
      "28       54     55           1      False  \n",
      "29       79     80           1      False  \n",
      "     #              Name    Type 1  Type 2  Total  HP  Attack  Defense  \\\n",
      "30  25           Pikachu  Electric     NaN    320  35      55       40   \n",
      "31  26            Raichu  Electric     NaN    485  60      90       55   \n",
      "32  27         Sandshrew    Ground     NaN    300  50      75       85   \n",
      "33  28         Sandslash    Ground     NaN    450  75     100      110   \n",
      "34  29  Nidoran (Female)    Poison     NaN    275  55      47       52   \n",
      "\n",
      "    Sp. Atk  Sp. Def  Speed  Generation  Legendary  \n",
      "30       50       50     90           1      False  \n",
      "31       90       80    110           1      False  \n",
      "32       20       30     40           1      False  \n",
      "33       45       55     65           1      False  \n",
      "34       40       40     41           1      False  \n",
      "     #            Name  Type 1  Type 2  Total  HP  Attack  Defense  Sp. Atk  \\\n",
      "35  30        Nidorina  Poison     NaN    365  70      62       67       55   \n",
      "36  31       Nidoqueen  Poison  Ground    505  90      92       87       75   \n",
      "37  32  Nidoran (Male)  Poison     NaN    273  46      57       40       40   \n",
      "38  33        Nidorino  Poison     NaN    365  61      72       57       55   \n",
      "39  34        Nidoking  Poison  Ground    505  81     102       77       85   \n",
      "\n",
      "    Sp. Def  Speed  Generation  Legendary  \n",
      "35       55     56           1      False  \n",
      "36       85     76           1      False  \n",
      "37       40     50           1      False  \n",
      "38       55     65           1      False  \n",
      "39       75     85           1      False  \n",
      "     #        Name  Type 1 Type 2  Total   HP  Attack  Defense  Sp. Atk  \\\n",
      "40  35    Clefairy   Fairy    NaN    323   70      45       48       60   \n",
      "41  36    Clefable   Fairy    NaN    483   95      70       73       95   \n",
      "42  37      Vulpix    Fire    NaN    299   38      41       40       50   \n",
      "43  38   Ninetales    Fire    NaN    505   73      76       75       81   \n",
      "44  39  Jigglypuff  Normal  Fairy    270  115      45       20       45   \n",
      "\n",
      "    Sp. Def  Speed  Generation  Legendary  \n",
      "40       65     35           1      False  \n",
      "41       90     60           1      False  \n",
      "42       65     65           1      False  \n",
      "43      100    100           1      False  \n",
      "44       25     20           1      False  \n",
      "     #        Name  Type 1  Type 2  Total   HP  Attack  Defense  Sp. Atk  \\\n",
      "45  40  Wigglytuff  Normal   Fairy    435  140      70       45       85   \n",
      "46  41       Zubat  Poison  Flying    245   40      45       35       30   \n",
      "47  42      Golbat  Poison  Flying    455   75      80       70       65   \n",
      "48  43      Oddish   Grass  Poison    320   45      50       55       75   \n",
      "49  44       Gloom   Grass  Poison    395   60      65       70       85   \n",
      "\n",
      "    Sp. Def  Speed  Generation  Legendary  \n",
      "45       50     45           1      False  \n",
      "46       40     55           1      False  \n",
      "47       75     90           1      False  \n",
      "48       65     30           1      False  \n",
      "49       75     40           1      False  \n",
      "     #       Name Type 1  Type 2  Total  HP  Attack  Defense  Sp. Atk  \\\n",
      "50  45  Vileplume  Grass  Poison    490  75      80       85      110   \n",
      "51  46      Paras    Bug   Grass    285  35      70       55       45   \n",
      "52  47   Parasect    Bug   Grass    405  60      95       80       60   \n",
      "53  48    Venonat    Bug  Poison    305  60      55       50       40   \n",
      "54  49   Venomoth    Bug  Poison    450  70      65       60       90   \n",
      "\n",
      "    Sp. Def  Speed  Generation  Legendary  \n",
      "50       90     50           1      False  \n",
      "51       55     25           1      False  \n",
      "52       80     30           1      False  \n",
      "53       55     45           1      False  \n",
      "54       75     90           1      False  \n",
      "     #     Name  Type 1  Type 2  Total  HP  Attack  Defense  Sp. Atk  Sp. Def  \\\n",
      "55  50  Diglett  Ground     NaN    265  10      55       25       35       45   \n",
      "56  51  Dugtrio  Ground     NaN    405  35      80       50       50       70   \n",
      "57  52   Meowth  Normal     NaN    290  40      45       35       40       40   \n",
      "58  53  Persian  Normal     NaN    440  65      70       60       65       65   \n",
      "59  54  Psyduck   Water     NaN    320  50      52       48       65       50   \n",
      "\n",
      "    Speed  Generation  Legendary  \n",
      "55     95           1      False  \n",
      "56    120           1      False  \n",
      "57     90           1      False  \n",
      "58    115           1      False  \n",
      "59     55           1      False  \n",
      "     #       Name    Type 1  Type 2  Total  HP  Attack  Defense  Sp. Atk  \\\n",
      "60  55    Golduck     Water     NaN    500  80      82       78       95   \n",
      "61  56     Mankey  Fighting     NaN    305  40      80       35       35   \n",
      "62  57   Primeape  Fighting     NaN    455  65     105       60       60   \n",
      "63  58  Growlithe      Fire     NaN    350  55      70       45       70   \n",
      "64  59   Arcanine      Fire     NaN    555  90     110       80      100   \n",
      "\n",
      "    Sp. Def  Speed  Generation  Legendary  \n",
      "60       80     85           1      False  \n",
      "61       45     70           1      False  \n",
      "62       70     95           1      False  \n",
      "63       50     60           1      False  \n",
      "64       80     95           1      False  \n",
      "     #       Name   Type 1    Type 2  Total  HP  Attack  Defense  Sp. Atk  \\\n",
      "65  60    Poliwag    Water       NaN    300  40      50       40       40   \n",
      "66  61  Poliwhirl    Water       NaN    385  65      65       65       50   \n",
      "67  62  Poliwrath    Water  Fighting    510  90      95       95       70   \n",
      "68  63       Abra  Psychic       NaN    310  25      20       15      105   \n",
      "69  64    Kadabra  Psychic       NaN    400  40      35       30      120   \n",
      "\n",
      "    Sp. Def  Speed  Generation  Legendary  \n",
      "65       40     90           1      False  \n",
      "66       50     90           1      False  \n",
      "67       90     70           1      False  \n",
      "68       55     90           1      False  \n",
      "69       70    105           1      False  \n",
      "     #                   Name    Type 1  Type 2  Total  HP  Attack  Defense  \\\n",
      "70  65               Alakazam   Psychic     NaN    500  55      50       45   \n",
      "71  65  AlakazamMega Alakazam   Psychic     NaN    590  55      50       65   \n",
      "72  66                 Machop  Fighting     NaN    305  70      80       50   \n",
      "73  67                Machoke  Fighting     NaN    405  80     100       70   \n",
      "74  68                Machamp  Fighting     NaN    505  90     130       80   \n",
      "\n",
      "    Sp. Atk  Sp. Def  Speed  Generation  Legendary  \n",
      "70      135       95    120           1      False  \n",
      "71      175       95    150           1      False  \n",
      "72       35       35     35           1      False  \n",
      "73       50       60     45           1      False  \n",
      "74       65       85     55           1      False  \n",
      "     #        Name Type 1  Type 2  Total  HP  Attack  Defense  Sp. Atk  \\\n",
      "75  69  Bellsprout  Grass  Poison    300  50      75       35       70   \n",
      "76  70  Weepinbell  Grass  Poison    390  65      90       50       85   \n",
      "77  71  Victreebel  Grass  Poison    490  80     105       65      100   \n",
      "78  72   Tentacool  Water  Poison    335  40      40       35       50   \n",
      "79  73  Tentacruel  Water  Poison    515  80      70       65       80   \n",
      "\n",
      "    Sp. Def  Speed  Generation  Legendary  \n",
      "75       30     40           1      False  \n",
      "76       45     55           1      False  \n",
      "77       70     70           1      False  \n",
      "78      100     70           1      False  \n",
      "79      120    100           1      False  \n",
      "     #      Name Type 1  Type 2  Total  HP  Attack  Defense  Sp. Atk  Sp. Def  \\\n",
      "80  74   Geodude   Rock  Ground    300  40      80      100       30       30   \n",
      "81  75  Graveler   Rock  Ground    390  55      95      115       45       45   \n",
      "82  76     Golem   Rock  Ground    495  80     120      130       55       65   \n",
      "83  77    Ponyta   Fire     NaN    410  50      85       55       65       65   \n",
      "84  78  Rapidash   Fire     NaN    500  65     100       70       80       80   \n",
      "\n",
      "    Speed  Generation  Legendary  \n",
      "80     20           1      False  \n",
      "81     35           1      False  \n",
      "82     45           1      False  \n",
      "83     90           1      False  \n",
      "84    105           1      False  \n",
      "     #                 Name    Type 1   Type 2  Total  HP  Attack  Defense  \\\n",
      "85  79             Slowpoke     Water  Psychic    315  90      65       65   \n",
      "86  80              Slowbro     Water  Psychic    490  95      75      110   \n",
      "87  80  SlowbroMega Slowbro     Water  Psychic    590  95      75      180   \n",
      "88  81            Magnemite  Electric    Steel    325  25      35       70   \n",
      "89  82             Magneton  Electric    Steel    465  50      60       95   \n",
      "\n",
      "    Sp. Atk  Sp. Def  Speed  Generation  Legendary  \n",
      "85       40       40     15           1      False  \n",
      "86      100       80     30           1      False  \n",
      "87      130       80     30           1      False  \n",
      "88       95       55     45           1      False  \n",
      "89      120       70     70           1      False  \n",
      "     #        Name  Type 1  Type 2  Total  HP  Attack  Defense  Sp. Atk  \\\n",
      "90  83  Farfetch'd  Normal  Flying    352  52      65       55       58   \n",
      "91  84       Doduo  Normal  Flying    310  35      85       45       35   \n",
      "92  85      Dodrio  Normal  Flying    460  60     110       70       60   \n",
      "93  86        Seel   Water     NaN    325  65      45       55       45   \n",
      "94  87     Dewgong   Water     Ice    475  90      70       80       70   \n",
      "\n",
      "    Sp. Def  Speed  Generation  Legendary  \n",
      "90       62     60           1      False  \n",
      "91       35     75           1      False  \n",
      "92       60    100           1      False  \n",
      "93       70     45           1      False  \n",
      "94       95     70           1      False  \n",
      "     #      Name  Type 1  Type 2  Total   HP  Attack  Defense  Sp. Atk  \\\n",
      "95  88    Grimer  Poison     NaN    325   80      80       50       40   \n",
      "96  89       Muk  Poison     NaN    500  105     105       75       65   \n",
      "97  90  Shellder   Water     NaN    305   30      65      100       45   \n",
      "98  91  Cloyster   Water     Ice    525   50      95      180       85   \n",
      "99  92    Gastly   Ghost  Poison    310   30      35       30      100   \n",
      "\n",
      "    Sp. Def  Speed  Generation  Legendary  \n",
      "95       50     25           1      False  \n",
      "96      100     50           1      False  \n",
      "97       25     40           1      False  \n",
      "98       45     70           1      False  \n",
      "99       35     80           1      False  \n",
      "      #               Name   Type 1  Type 2  Total  HP  Attack  Defense  \\\n",
      "100  93            Haunter    Ghost  Poison    405  45      50       45   \n",
      "101  94             Gengar    Ghost  Poison    500  60      65       60   \n",
      "102  94  GengarMega Gengar    Ghost  Poison    600  60      65       80   \n",
      "103  95               Onix     Rock  Ground    385  35      45      160   \n",
      "104  96            Drowzee  Psychic     NaN    328  60      48       45   \n",
      "\n",
      "     Sp. Atk  Sp. Def  Speed  Generation  Legendary  \n",
      "100      115       55     95           1      False  \n",
      "101      130       75    110           1      False  \n",
      "102      170       95    130           1      False  \n",
      "103       30       45     70           1      False  \n",
      "104       43       90     42           1      False  \n",
      "       #       Name    Type 1  Type 2  Total  HP  Attack  Defense  Sp. Atk  \\\n",
      "105   97      Hypno   Psychic     NaN    483  85      73       70       73   \n",
      "106   98     Krabby     Water     NaN    325  30     105       90       25   \n",
      "107   99    Kingler     Water     NaN    475  55     130      115       50   \n",
      "108  100    Voltorb  Electric     NaN    330  40      30       50       55   \n",
      "109  101  Electrode  Electric     NaN    480  60      50       70       80   \n",
      "\n",
      "     Sp. Def  Speed  Generation  Legendary  \n",
      "105      115     67           1      False  \n",
      "106       25     50           1      False  \n",
      "107       50     75           1      False  \n",
      "108       55    100           1      False  \n",
      "109       80    140           1      False  \n",
      "       #       Name    Type 1   Type 2  Total  HP  Attack  Defense  Sp. Atk  \\\n",
      "110  102  Exeggcute     Grass  Psychic    325  60      40       80       60   \n",
      "111  103  Exeggutor     Grass  Psychic    520  95      95       85      125   \n",
      "112  104     Cubone    Ground      NaN    320  50      50       95       40   \n",
      "113  105    Marowak    Ground      NaN    425  60      80      110       50   \n",
      "114  106  Hitmonlee  Fighting      NaN    455  50     120       53       35   \n",
      "\n",
      "     Sp. Def  Speed  Generation  Legendary  \n",
      "110       45     40           1      False  \n",
      "111       65     55           1      False  \n",
      "112       50     35           1      False  \n",
      "113       80     45           1      False  \n",
      "114      110     87           1      False  \n",
      "       #        Name    Type 1 Type 2  Total  HP  Attack  Defense  Sp. Atk  \\\n",
      "115  107  Hitmonchan  Fighting    NaN    455  50     105       79       35   \n",
      "116  108   Lickitung    Normal    NaN    385  90      55       75       60   \n",
      "117  109     Koffing    Poison    NaN    340  40      65       95       60   \n",
      "118  110     Weezing    Poison    NaN    490  65      90      120       85   \n",
      "119  111     Rhyhorn    Ground   Rock    345  80      85       95       30   \n",
      "\n",
      "     Sp. Def  Speed  Generation  Legendary  \n",
      "115      110     76           1      False  \n",
      "116       75     30           1      False  \n",
      "117       45     35           1      False  \n",
      "118       70     60           1      False  \n",
      "119       30     25           1      False  \n",
      "       #                       Name  Type 1 Type 2  Total   HP  Attack  \\\n",
      "120  112                     Rhydon  Ground   Rock    485  105     130   \n",
      "121  113                    Chansey  Normal    NaN    450  250       5   \n",
      "122  114                    Tangela   Grass    NaN    435   65      55   \n",
      "123  115                 Kangaskhan  Normal    NaN    490  105      95   \n",
      "124  115  KangaskhanMega Kangaskhan  Normal    NaN    590  105     125   \n",
      "\n",
      "     Defense  Sp. Atk  Sp. Def  Speed  Generation  Legendary  \n",
      "120      120       45       45     40           1      False  \n",
      "121        5       35      105     50           1      False  \n",
      "122      115      100       40     60           1      False  \n",
      "123       80       40       80     90           1      False  \n",
      "124      100       60      100    100           1      False  \n",
      "       #     Name Type 1  Type 2  Total  HP  Attack  Defense  Sp. Atk  \\\n",
      "125  116   Horsea  Water     NaN    295  30      40       70       70   \n",
      "126  117   Seadra  Water     NaN    440  55      65       95       95   \n",
      "127  118  Goldeen  Water     NaN    320  45      67       60       35   \n",
      "128  119  Seaking  Water     NaN    450  80      92       65       65   \n",
      "129  120   Staryu  Water     NaN    340  30      45       55       70   \n",
      "\n",
      "     Sp. Def  Speed  Generation  Legendary  \n",
      "125       25     60           1      False  \n",
      "126       45     85           1      False  \n",
      "127       50     63           1      False  \n",
      "128       80     68           1      False  \n",
      "129       55     85           1      False  \n",
      "       #        Name    Type 1   Type 2  Total  HP  Attack  Defense  Sp. Atk  \\\n",
      "130  121     Starmie     Water  Psychic    520  60      75       85      100   \n",
      "131  122    Mr. Mime   Psychic    Fairy    460  40      45       65      100   \n",
      "132  123     Scyther       Bug   Flying    500  70     110       80       55   \n",
      "133  124        Jynx       Ice  Psychic    455  65      50       35      115   \n",
      "134  125  Electabuzz  Electric      NaN    490  65      83       57       95   \n",
      "\n",
      "     Sp. Def  Speed  Generation  Legendary  \n",
      "130       85    115           1      False  \n",
      "131      120     90           1      False  \n",
      "132       80    105           1      False  \n",
      "133       95     95           1      False  \n",
      "134       85    105           1      False  \n"
     ]
    },
    {
     "name": "stdout",
     "output_type": "stream",
     "text": [
      "       #               Name  Type 1  Type 2  Total  HP  Attack  Defense  \\\n",
      "135  126             Magmar    Fire     NaN    495  65      95       57   \n",
      "136  127             Pinsir     Bug     NaN    500  65     125      100   \n",
      "137  127  PinsirMega Pinsir     Bug  Flying    600  65     155      120   \n",
      "138  128             Tauros  Normal     NaN    490  75     100       95   \n",
      "139  129           Magikarp   Water     NaN    200  20      10       55   \n",
      "\n",
      "     Sp. Atk  Sp. Def  Speed  Generation  Legendary  \n",
      "135      100       85     93           1      False  \n",
      "136       55       70     85           1      False  \n",
      "137       65       90    105           1      False  \n",
      "138       40       70    110           1      False  \n",
      "139       15       20     80           1      False  \n",
      "       #                   Name  Type 1  Type 2  Total   HP  Attack  Defense  \\\n",
      "140  130               Gyarados   Water  Flying    540   95     125       79   \n",
      "141  130  GyaradosMega Gyarados   Water    Dark    640   95     155      109   \n",
      "142  131                 Lapras   Water     Ice    535  130      85       80   \n",
      "143  132                  Ditto  Normal     NaN    288   48      48       48   \n",
      "144  133                  Eevee  Normal     NaN    325   55      55       50   \n",
      "\n",
      "     Sp. Atk  Sp. Def  Speed  Generation  Legendary  \n",
      "140       60      100     81           1      False  \n",
      "141       70      130     81           1      False  \n",
      "142       85       95     60           1      False  \n",
      "143       48       48     48           1      False  \n",
      "144       45       65     55           1      False  \n",
      "       #      Name    Type 1 Type 2  Total   HP  Attack  Defense  Sp. Atk  \\\n",
      "145  134  Vaporeon     Water    NaN    525  130      65       60      110   \n",
      "146  135   Jolteon  Electric    NaN    525   65      65       60      110   \n",
      "147  136   Flareon      Fire    NaN    525   65     130       60       95   \n",
      "148  137   Porygon    Normal    NaN    395   65      60       70       85   \n",
      "149  138   Omanyte      Rock  Water    355   35      40      100       90   \n",
      "\n",
      "     Sp. Def  Speed  Generation  Legendary  \n",
      "145       95     65           1      False  \n",
      "146       95    130           1      False  \n",
      "147      110     65           1      False  \n",
      "148       75     40           1      False  \n",
      "149       55     35           1      False  \n",
      "       #                       Name Type 1  Type 2  Total  HP  Attack  \\\n",
      "150  139                    Omastar   Rock   Water    495  70      60   \n",
      "151  140                     Kabuto   Rock   Water    355  30      80   \n",
      "152  141                   Kabutops   Rock   Water    495  60     115   \n",
      "153  142                 Aerodactyl   Rock  Flying    515  80     105   \n",
      "154  142  AerodactylMega Aerodactyl   Rock  Flying    615  80     135   \n",
      "\n",
      "     Defense  Sp. Atk  Sp. Def  Speed  Generation  Legendary  \n",
      "150      125      115       70     55           1      False  \n",
      "151       90       55       45     55           1      False  \n",
      "152      105       65       70     80           1      False  \n",
      "153       65       60       75    130           1      False  \n",
      "154       85       70       95    150           1      False  \n",
      "       #      Name    Type 1  Type 2  Total   HP  Attack  Defense  Sp. Atk  \\\n",
      "155  143   Snorlax    Normal     NaN    540  160     110       65       65   \n",
      "156  144  Articuno       Ice  Flying    580   90      85      100       95   \n",
      "157  145    Zapdos  Electric  Flying    580   90      90       85      125   \n",
      "158  146   Moltres      Fire  Flying    580   90     100       90      125   \n",
      "159  147   Dratini    Dragon     NaN    300   41      64       45       50   \n",
      "\n",
      "     Sp. Def  Speed  Generation  Legendary  \n",
      "155      110     30           1      False  \n",
      "156      125     85           1       True  \n",
      "157       90    100           1       True  \n",
      "158       85     90           1       True  \n",
      "159       50     50           1      False  \n",
      "       #                 Name   Type 1    Type 2  Total   HP  Attack  Defense  \\\n",
      "160  148            Dragonair   Dragon       NaN    420   61      84       65   \n",
      "161  149            Dragonite   Dragon    Flying    600   91     134       95   \n",
      "162  150               Mewtwo  Psychic       NaN    680  106     110       90   \n",
      "163  150  MewtwoMega Mewtwo X  Psychic  Fighting    780  106     190      100   \n",
      "164  150  MewtwoMega Mewtwo Y  Psychic       NaN    780  106     150       70   \n",
      "\n",
      "     Sp. Atk  Sp. Def  Speed  Generation  Legendary  \n",
      "160       70       70     70           1      False  \n",
      "161      100      100     80           1      False  \n",
      "162      154       90    130           1       True  \n",
      "163      154      100    130           1       True  \n",
      "164      194      120    140           1       True  \n",
      "       #       Name   Type 1  Type 2  Total   HP  Attack  Defense  Sp. Atk  \\\n",
      "165  151        Mew  Psychic     NaN    600  100     100      100      100   \n",
      "166  152  Chikorita    Grass     NaN    318   45      49       65       49   \n",
      "167  153    Bayleef    Grass     NaN    405   60      62       80       63   \n",
      "168  154   Meganium    Grass     NaN    525   80      82      100       83   \n",
      "169  155  Cyndaquil     Fire     NaN    309   39      52       43       60   \n",
      "\n",
      "     Sp. Def  Speed  Generation  Legendary  \n",
      "165      100    100           1      False  \n",
      "166       65     45           2      False  \n",
      "167       80     60           2      False  \n",
      "168      100     80           2      False  \n",
      "169       50     65           2      False  \n",
      "       #        Name Type 1  Type 2  Total  HP  Attack  Defense  Sp. Atk  \\\n",
      "170  156     Quilava   Fire     NaN    405  58      64       58       80   \n",
      "171  157  Typhlosion   Fire     NaN    534  78      84       78      109   \n",
      "172  158    Totodile  Water     NaN    314  50      65       64       44   \n",
      "173  159    Croconaw  Water     NaN    405  65      80       80       59   \n",
      "174  160  Feraligatr  Water     NaN    530  85     105      100       79   \n",
      "\n",
      "     Sp. Def  Speed  Generation  Legendary  \n",
      "170       65     80           2      False  \n",
      "171       85    100           2      False  \n",
      "172       48     43           2      False  \n",
      "173       63     58           2      False  \n",
      "174       83     78           2      False  \n",
      "       #      Name  Type 1  Type 2  Total   HP  Attack  Defense  Sp. Atk  \\\n",
      "175  161   Sentret  Normal     NaN    215   35      46       34       35   \n",
      "176  162    Furret  Normal     NaN    415   85      76       64       45   \n",
      "177  163  Hoothoot  Normal  Flying    262   60      30       30       36   \n",
      "178  164   Noctowl  Normal  Flying    442  100      50       50       76   \n",
      "179  165    Ledyba     Bug  Flying    265   40      20       30       40   \n",
      "\n",
      "     Sp. Def  Speed  Generation  Legendary  \n",
      "175       45     20           2      False  \n",
      "176       55     90           2      False  \n",
      "177       56     50           2      False  \n",
      "178       96     70           2      False  \n",
      "179       80     55           2      False  \n",
      "       #      Name  Type 1    Type 2  Total  HP  Attack  Defense  Sp. Atk  \\\n",
      "180  166    Ledian     Bug    Flying    390  55      35       50       55   \n",
      "181  167  Spinarak     Bug    Poison    250  40      60       40       40   \n",
      "182  168   Ariados     Bug    Poison    390  70      90       70       60   \n",
      "183  169    Crobat  Poison    Flying    535  85      90       80       70   \n",
      "184  170  Chinchou   Water  Electric    330  75      38       38       56   \n",
      "\n",
      "     Sp. Def  Speed  Generation  Legendary  \n",
      "180      110     85           2      False  \n",
      "181       40     30           2      False  \n",
      "182       60     40           2      False  \n",
      "183       80    130           2      False  \n",
      "184       56     67           2      False  \n",
      "       #       Name    Type 1    Type 2  Total   HP  Attack  Defense  Sp. Atk  \\\n",
      "185  171    Lanturn     Water  Electric    460  125      58       58       76   \n",
      "186  172      Pichu  Electric       NaN    205   20      40       15       35   \n",
      "187  173     Cleffa     Fairy       NaN    218   50      25       28       45   \n",
      "188  174  Igglybuff    Normal     Fairy    210   90      30       15       40   \n",
      "189  175     Togepi     Fairy       NaN    245   35      20       65       40   \n",
      "\n",
      "     Sp. Def  Speed  Generation  Legendary  \n",
      "185       76     67           2      False  \n",
      "186       35     60           2      False  \n",
      "187       55     15           2      False  \n",
      "188       20     15           2      False  \n",
      "189       65     20           2      False  \n",
      "       #     Name    Type 1  Type 2  Total  HP  Attack  Defense  Sp. Atk  \\\n",
      "190  176  Togetic     Fairy  Flying    405  55      40       85       80   \n",
      "191  177     Natu   Psychic  Flying    320  40      50       45       70   \n",
      "192  178     Xatu   Psychic  Flying    470  65      75       70       95   \n",
      "193  179   Mareep  Electric     NaN    280  55      40       40       65   \n",
      "194  180  Flaaffy  Electric     NaN    365  70      55       55       80   \n",
      "\n",
      "     Sp. Def  Speed  Generation  Legendary  \n",
      "190      105     40           2      False  \n",
      "191       45     70           2      False  \n",
      "192       70     95           2      False  \n",
      "193       45     35           2      False  \n",
      "194       60     45           2      False  \n",
      "       #                   Name    Type 1  Type 2  Total   HP  Attack  \\\n",
      "195  181               Ampharos  Electric     NaN    510   90      75   \n",
      "196  181  AmpharosMega Ampharos  Electric  Dragon    610   90      95   \n",
      "197  182              Bellossom     Grass     NaN    490   75      80   \n",
      "198  183                 Marill     Water   Fairy    250   70      20   \n",
      "199  184              Azumarill     Water   Fairy    420  100      50   \n",
      "\n",
      "     Defense  Sp. Atk  Sp. Def  Speed  Generation  Legendary  \n",
      "195       85      115       90     55           2      False  \n",
      "196      105      165      110     45           2      False  \n",
      "197       95       90      100     50           2      False  \n",
      "198       50       20       50     40           2      False  \n",
      "199       80       60       80     50           2      False  \n",
      "       #       Name Type 1  Type 2  Total  HP  Attack  Defense  Sp. Atk  \\\n",
      "200  185  Sudowoodo   Rock     NaN    410  70     100      115       30   \n",
      "201  186   Politoed  Water     NaN    500  90      75       75       90   \n",
      "202  187     Hoppip  Grass  Flying    250  35      35       40       35   \n",
      "203  188   Skiploom  Grass  Flying    340  55      45       50       45   \n",
      "204  189   Jumpluff  Grass  Flying    460  75      55       70       55   \n",
      "\n",
      "     Sp. Def  Speed  Generation  Legendary  \n",
      "200       65     30           2      False  \n",
      "201      100     70           2      False  \n",
      "202       55     50           2      False  \n",
      "203       65     80           2      False  \n",
      "204       95    110           2      False  \n",
      "       #      Name  Type 1  Type 2  Total  HP  Attack  Defense  Sp. Atk  \\\n",
      "205  190     Aipom  Normal     NaN    360  55      70       55       40   \n",
      "206  191   Sunkern   Grass     NaN    180  30      30       30       30   \n",
      "207  192  Sunflora   Grass     NaN    425  75      75       55      105   \n",
      "208  193     Yanma     Bug  Flying    390  65      65       45       75   \n",
      "209  194    Wooper   Water  Ground    210  55      45       45       25   \n",
      "\n",
      "     Sp. Def  Speed  Generation  Legendary  \n",
      "205       55     85           2      False  \n",
      "206       30     30           2      False  \n",
      "207       85     30           2      False  \n",
      "208       45     95           2      False  \n",
      "209       25     15           2      False  \n",
      "       #      Name   Type 1   Type 2  Total  HP  Attack  Defense  Sp. Atk  \\\n",
      "210  195  Quagsire    Water   Ground    430  95      85       85       65   \n",
      "211  196    Espeon  Psychic      NaN    525  65      65       60      130   \n",
      "212  197   Umbreon     Dark      NaN    525  95      65      110       60   \n",
      "213  198   Murkrow     Dark   Flying    405  60      85       42       85   \n",
      "214  199  Slowking    Water  Psychic    490  95      75       80      100   \n",
      "\n",
      "     Sp. Def  Speed  Generation  Legendary  \n",
      "210       65     35           2      False  \n",
      "211       95    110           2      False  \n",
      "212      130     65           2      False  \n",
      "213       42     91           2      False  \n",
      "214      110     30           2      False  \n",
      "       #        Name   Type 1   Type 2  Total   HP  Attack  Defense  Sp. Atk  \\\n",
      "215  200  Misdreavus    Ghost      NaN    435   60      60       60       85   \n",
      "216  201       Unown  Psychic      NaN    336   48      72       48       72   \n",
      "217  202   Wobbuffet  Psychic      NaN    405  190      33       58       33   \n",
      "218  203   Girafarig   Normal  Psychic    455   70      80       65       90   \n",
      "219  204      Pineco      Bug      NaN    290   50      65       90       35   \n",
      "\n",
      "     Sp. Def  Speed  Generation  Legendary  \n",
      "215       85     85           2      False  \n",
      "216       48     48           2      False  \n",
      "217       58     33           2      False  \n",
      "218       65     85           2      False  \n",
      "219       35     15           2      False  \n",
      "       #                 Name  Type 1  Type 2  Total   HP  Attack  Defense  \\\n",
      "220  205           Forretress     Bug   Steel    465   75      90      140   \n",
      "221  206            Dunsparce  Normal     NaN    415  100      70       70   \n",
      "222  207               Gligar  Ground  Flying    430   65      75      105   \n",
      "223  208              Steelix   Steel  Ground    510   75      85      200   \n",
      "224  208  SteelixMega Steelix   Steel  Ground    610   75     125      230   \n",
      "\n",
      "     Sp. Atk  Sp. Def  Speed  Generation  Legendary  \n",
      "220       60       60     40           2      False  \n",
      "221       65       65     45           2      False  \n",
      "222       35       65     85           2      False  \n",
      "223       55       65     30           2      False  \n",
      "224       55       95     30           2      False  \n",
      "       #               Name Type 1  Type 2  Total  HP  Attack  Defense  \\\n",
      "225  209           Snubbull  Fairy     NaN    300  60      80       50   \n",
      "226  210           Granbull  Fairy     NaN    450  90     120       75   \n",
      "227  211           Qwilfish  Water  Poison    430  65      95       75   \n",
      "228  212             Scizor    Bug   Steel    500  70     130      100   \n",
      "229  212  ScizorMega Scizor    Bug   Steel    600  70     150      140   \n",
      "\n",
      "     Sp. Atk  Sp. Def  Speed  Generation  Legendary  \n",
      "225       40       40     30           2      False  \n",
      "226       60       60     45           2      False  \n",
      "227       55       55     85           2      False  \n",
      "228       55       80     65           2      False  \n",
      "229       65      100     75           2      False  \n",
      "       #                     Name  Type 1    Type 2  Total  HP  Attack  \\\n",
      "230  213                  Shuckle     Bug      Rock    505  20      10   \n",
      "231  214                Heracross     Bug  Fighting    500  80     125   \n",
      "232  214  HeracrossMega Heracross     Bug  Fighting    600  80     185   \n",
      "233  215                  Sneasel    Dark       Ice    430  55      95   \n",
      "234  216                Teddiursa  Normal       NaN    330  60      80   \n",
      "\n",
      "     Defense  Sp. Atk  Sp. Def  Speed  Generation  Legendary  \n",
      "230      230       10      230      5           2      False  \n",
      "231       75       40       95     85           2      False  \n",
      "232      115       40      105     75           2      False  \n",
      "233       55       35       75    115           2      False  \n",
      "234       50       50       50     40           2      False  \n",
      "       #       Name  Type 1  Type 2  Total   HP  Attack  Defense  Sp. Atk  \\\n",
      "235  217   Ursaring  Normal     NaN    500   90     130       75       75   \n",
      "236  218     Slugma    Fire     NaN    250   40      40       40       70   \n",
      "237  219   Magcargo    Fire    Rock    410   50      50      120       80   \n",
      "238  220     Swinub     Ice  Ground    250   50      50       40       30   \n",
      "239  221  Piloswine     Ice  Ground    450  100     100       80       60   \n",
      "\n",
      "     Sp. Def  Speed  Generation  Legendary  \n",
      "235       75     55           2      False  \n",
      "236       40     20           2      False  \n",
      "237       80     30           2      False  \n",
      "238       30     50           2      False  \n",
      "239       60     50           2      False  \n",
      "       #       Name Type 1  Type 2  Total  HP  Attack  Defense  Sp. Atk  \\\n",
      "240  222    Corsola  Water    Rock    380  55      55       85       65   \n",
      "241  223   Remoraid  Water     NaN    300  35      65       35       65   \n",
      "242  224  Octillery  Water     NaN    480  75     105       75      105   \n",
      "243  225   Delibird    Ice  Flying    330  45      55       45       65   \n",
      "244  226    Mantine  Water  Flying    465  65      40       70       80   \n",
      "\n",
      "     Sp. Def  Speed  Generation  Legendary  \n",
      "240       85     35           2      False  \n",
      "241       35     65           2      False  \n",
      "242       75     45           2      False  \n",
      "243       45     75           2      False  \n",
      "244      140     70           2      False  \n",
      "       #                   Name Type 1  Type 2  Total  HP  Attack  Defense  \\\n",
      "245  227               Skarmory  Steel  Flying    465  65      80      140   \n",
      "246  228               Houndour   Dark    Fire    330  45      60       30   \n",
      "247  229               Houndoom   Dark    Fire    500  75      90       50   \n",
      "248  229  HoundoomMega Houndoom   Dark    Fire    600  75      90       90   \n",
      "249  230                Kingdra  Water  Dragon    540  75      95       95   \n",
      "\n",
      "     Sp. Atk  Sp. Def  Speed  Generation  Legendary  \n",
      "245       40       70     70           2      False  \n",
      "246       80       50     65           2      False  \n",
      "247      110       80     95           2      False  \n",
      "248      140       90    115           2      False  \n",
      "249       95       95     85           2      False  \n",
      "       #      Name  Type 1  Type 2  Total  HP  Attack  Defense  Sp. Atk  \\\n",
      "250  231    Phanpy  Ground     NaN    330  90      60       60       40   \n",
      "251  232   Donphan  Ground     NaN    500  90     120      120       60   \n",
      "252  233  Porygon2  Normal     NaN    515  85      80       90      105   \n",
      "253  234  Stantler  Normal     NaN    465  73      95       62       85   \n",
      "254  235  Smeargle  Normal     NaN    250  55      20       35       20   \n",
      "\n",
      "     Sp. Def  Speed  Generation  Legendary  \n",
      "250       40     40           2      False  \n",
      "251       60     50           2      False  \n",
      "252       95     60           2      False  \n",
      "253       65     85           2      False  \n",
      "254       45     75           2      False  \n",
      "       #       Name    Type 1   Type 2  Total  HP  Attack  Defense  Sp. Atk  \\\n",
      "255  236    Tyrogue  Fighting      NaN    210  35      35       35       35   \n",
      "256  237  Hitmontop  Fighting      NaN    455  50      95       95       35   \n",
      "257  238   Smoochum       Ice  Psychic    305  45      30       15       85   \n",
      "258  239     Elekid  Electric      NaN    360  45      63       37       65   \n",
      "259  240      Magby      Fire      NaN    365  45      75       37       70   \n",
      "\n",
      "     Sp. Def  Speed  Generation  Legendary  \n",
      "255       35     35           2      False  \n",
      "256      110     70           2      False  \n",
      "257       65     65           2      False  \n",
      "258       55     95           2      False  \n",
      "259       55     83           2      False  \n"
     ]
    },
    {
     "name": "stdout",
     "output_type": "stream",
     "text": [
      "       #     Name    Type 1  Type 2  Total   HP  Attack  Defense  Sp. Atk  \\\n",
      "260  241  Miltank    Normal     NaN    490   95      80      105       40   \n",
      "261  242  Blissey    Normal     NaN    540  255      10       10       75   \n",
      "262  243   Raikou  Electric     NaN    580   90      85       75      115   \n",
      "263  244    Entei      Fire     NaN    580  115     115       85       90   \n",
      "264  245  Suicune     Water     NaN    580  100      75      115       90   \n",
      "\n",
      "     Sp. Def  Speed  Generation  Legendary  \n",
      "260       70    100           2      False  \n",
      "261      135     55           2      False  \n",
      "262      100    115           2       True  \n",
      "263       75    100           2       True  \n",
      "264      115     85           2       True  \n",
      "       #                     Name   Type 1  Type 2  Total   HP  Attack  \\\n",
      "265  246                 Larvitar     Rock  Ground    300   50      64   \n",
      "266  247                  Pupitar     Rock  Ground    410   70      84   \n",
      "267  248                Tyranitar     Rock    Dark    600  100     134   \n",
      "268  248  TyranitarMega Tyranitar     Rock    Dark    700  100     164   \n",
      "269  249                    Lugia  Psychic  Flying    680  106      90   \n",
      "\n",
      "     Defense  Sp. Atk  Sp. Def  Speed  Generation  Legendary  \n",
      "265       50       45       50     41           2      False  \n",
      "266       70       65       70     51           2      False  \n",
      "267      110       95      100     61           2      False  \n",
      "268      150       95      120     71           2      False  \n",
      "269      130       90      154    110           2       True  \n",
      "       #      Name   Type 1  Type 2  Total   HP  Attack  Defense  Sp. Atk  \\\n",
      "270  250     Ho-oh     Fire  Flying    680  106     130       90      110   \n",
      "271  251    Celebi  Psychic   Grass    600  100     100      100      100   \n",
      "272  252   Treecko    Grass     NaN    310   40      45       35       65   \n",
      "273  253   Grovyle    Grass     NaN    405   50      65       45       85   \n",
      "274  254  Sceptile    Grass     NaN    530   70      85       65      105   \n",
      "\n",
      "     Sp. Def  Speed  Generation  Legendary  \n",
      "270      154     90           2       True  \n",
      "271      100    100           2      False  \n",
      "272       55     70           3      False  \n",
      "273       65     95           3      False  \n",
      "274       85    120           3      False  \n",
      "       #                   Name Type 1    Type 2  Total  HP  Attack  Defense  \\\n",
      "275  254  SceptileMega Sceptile  Grass    Dragon    630  70     110       75   \n",
      "276  255                Torchic   Fire       NaN    310  45      60       40   \n",
      "277  256              Combusken   Fire  Fighting    405  60      85       60   \n",
      "278  257               Blaziken   Fire  Fighting    530  80     120       70   \n",
      "279  257  BlazikenMega Blaziken   Fire  Fighting    630  80     160       80   \n",
      "\n",
      "     Sp. Atk  Sp. Def  Speed  Generation  Legendary  \n",
      "275      145       85    145           3      False  \n",
      "276       70       50     45           3      False  \n",
      "277       85       60     55           3      False  \n",
      "278      110       70     80           3      False  \n",
      "279      130       80    100           3      False  \n",
      "       #                   Name Type 1  Type 2  Total   HP  Attack  Defense  \\\n",
      "280  258                 Mudkip  Water     NaN    310   50      70       50   \n",
      "281  259              Marshtomp  Water  Ground    405   70      85       70   \n",
      "282  260               Swampert  Water  Ground    535  100     110       90   \n",
      "283  260  SwampertMega Swampert  Water  Ground    635  100     150      110   \n",
      "284  261              Poochyena   Dark     NaN    220   35      55       35   \n",
      "\n",
      "     Sp. Atk  Sp. Def  Speed  Generation  Legendary  \n",
      "280       50       50     40           3      False  \n",
      "281       60       70     50           3      False  \n",
      "282       85       90     60           3      False  \n",
      "283       95      110     70           3      False  \n",
      "284       30       30     35           3      False  \n",
      "       #       Name  Type 1  Type 2  Total  HP  Attack  Defense  Sp. Atk  \\\n",
      "285  262  Mightyena    Dark     NaN    420  70      90       70       60   \n",
      "286  263  Zigzagoon  Normal     NaN    240  38      30       41       30   \n",
      "287  264    Linoone  Normal     NaN    420  78      70       61       50   \n",
      "288  265    Wurmple     Bug     NaN    195  45      45       35       20   \n",
      "289  266    Silcoon     Bug     NaN    205  50      35       55       25   \n",
      "\n",
      "     Sp. Def  Speed  Generation  Legendary  \n",
      "285       60     70           3      False  \n",
      "286       41     60           3      False  \n",
      "287       61    100           3      False  \n",
      "288       30     20           3      False  \n",
      "289       25     15           3      False  \n",
      "       #       Name Type 1  Type 2  Total  HP  Attack  Defense  Sp. Atk  \\\n",
      "290  267  Beautifly    Bug  Flying    395  60      70       50      100   \n",
      "291  268    Cascoon    Bug     NaN    205  50      35       55       25   \n",
      "292  269     Dustox    Bug  Poison    385  60      50       70       50   \n",
      "293  270      Lotad  Water   Grass    220  40      30       30       40   \n",
      "294  271     Lombre  Water   Grass    340  60      50       50       60   \n",
      "\n",
      "     Sp. Def  Speed  Generation  Legendary  \n",
      "290       50     65           3      False  \n",
      "291       25     15           3      False  \n",
      "292       90     65           3      False  \n",
      "293       50     30           3      False  \n",
      "294       70     50           3      False  \n",
      "       #      Name  Type 1  Type 2  Total  HP  Attack  Defense  Sp. Atk  \\\n",
      "295  272  Ludicolo   Water   Grass    480  80      70       70       90   \n",
      "296  273    Seedot   Grass     NaN    220  40      40       50       30   \n",
      "297  274   Nuzleaf   Grass    Dark    340  70      70       40       60   \n",
      "298  275   Shiftry   Grass    Dark    480  90     100       60       90   \n",
      "299  276   Taillow  Normal  Flying    270  40      55       30       30   \n",
      "\n",
      "     Sp. Def  Speed  Generation  Legendary  \n",
      "295      100     70           3      False  \n",
      "296       30     30           3      False  \n",
      "297       40     60           3      False  \n",
      "298       60     80           3      False  \n",
      "299       30     85           3      False  \n",
      "       #      Name   Type 1  Type 2  Total  HP  Attack  Defense  Sp. Atk  \\\n",
      "300  277   Swellow   Normal  Flying    430  60      85       60       50   \n",
      "301  278   Wingull    Water  Flying    270  40      30       30       55   \n",
      "302  279  Pelipper    Water  Flying    430  60      50      100       85   \n",
      "303  280     Ralts  Psychic   Fairy    198  28      25       25       45   \n",
      "304  281    Kirlia  Psychic   Fairy    278  38      35       35       65   \n",
      "\n",
      "     Sp. Def  Speed  Generation  Legendary  \n",
      "300       50    125           3      False  \n",
      "301       30     85           3      False  \n",
      "302       70     65           3      False  \n",
      "303       35     40           3      False  \n",
      "304       55     50           3      False  \n",
      "       #                     Name   Type 1  Type 2  Total  HP  Attack  \\\n",
      "305  282                Gardevoir  Psychic   Fairy    518  68      65   \n",
      "306  282  GardevoirMega Gardevoir  Psychic   Fairy    618  68      85   \n",
      "307  283                  Surskit      Bug   Water    269  40      30   \n",
      "308  284               Masquerain      Bug  Flying    414  70      60   \n",
      "309  285                Shroomish    Grass     NaN    295  60      40   \n",
      "\n",
      "     Defense  Sp. Atk  Sp. Def  Speed  Generation  Legendary  \n",
      "305       65      125      115     80           3      False  \n",
      "306       65      165      135    100           3      False  \n",
      "307       32       50       52     65           3      False  \n",
      "308       62       80       82     60           3      False  \n",
      "309       60       40       60     35           3      False  \n",
      "       #      Name  Type 1    Type 2  Total   HP  Attack  Defense  Sp. Atk  \\\n",
      "310  286   Breloom   Grass  Fighting    460   60     130       80       60   \n",
      "311  287   Slakoth  Normal       NaN    280   60      60       60       35   \n",
      "312  288  Vigoroth  Normal       NaN    440   80      80       80       55   \n",
      "313  289   Slaking  Normal       NaN    670  150     160      100       95   \n",
      "314  290   Nincada     Bug    Ground    266   31      45       90       30   \n",
      "\n",
      "     Sp. Def  Speed  Generation  Legendary  \n",
      "310       60     70           3      False  \n",
      "311       35     30           3      False  \n",
      "312       55     90           3      False  \n",
      "313       65    100           3      False  \n",
      "314       30     40           3      False  \n",
      "       #      Name  Type 1  Type 2  Total   HP  Attack  Defense  Sp. Atk  \\\n",
      "315  291   Ninjask     Bug  Flying    456   61      90       45       50   \n",
      "316  292  Shedinja     Bug   Ghost    236    1      90       45       30   \n",
      "317  293   Whismur  Normal     NaN    240   64      51       23       51   \n",
      "318  294   Loudred  Normal     NaN    360   84      71       43       71   \n",
      "319  295   Exploud  Normal     NaN    490  104      91       63       91   \n",
      "\n",
      "     Sp. Def  Speed  Generation  Legendary  \n",
      "315       50    160           3      False  \n",
      "316       30     40           3      False  \n",
      "317       23     28           3      False  \n",
      "318       43     48           3      False  \n",
      "319       73     68           3      False  \n",
      "       #      Name    Type 1 Type 2  Total   HP  Attack  Defense  Sp. Atk  \\\n",
      "320  296  Makuhita  Fighting    NaN    237   72      60       30       20   \n",
      "321  297  Hariyama  Fighting    NaN    474  144     120       60       40   \n",
      "322  298   Azurill    Normal  Fairy    190   50      20       40       20   \n",
      "323  299  Nosepass      Rock    NaN    375   30      45      135       45   \n",
      "324  300    Skitty    Normal    NaN    260   50      45       45       35   \n",
      "\n",
      "     Sp. Def  Speed  Generation  Legendary  \n",
      "320       30     25           3      False  \n",
      "321       60     50           3      False  \n",
      "322       40     20           3      False  \n",
      "323       90     30           3      False  \n",
      "324       35     50           3      False  \n",
      "       #                 Name  Type 1 Type 2  Total  HP  Attack  Defense  \\\n",
      "325  301             Delcatty  Normal    NaN    380  70      65       65   \n",
      "326  302              Sableye    Dark  Ghost    380  50      75       75   \n",
      "327  302  SableyeMega Sableye    Dark  Ghost    480  50      85      125   \n",
      "328  303               Mawile   Steel  Fairy    380  50      85       85   \n",
      "329  303    MawileMega Mawile   Steel  Fairy    480  50     105      125   \n",
      "\n",
      "     Sp. Atk  Sp. Def  Speed  Generation  Legendary  \n",
      "325       55       55     70           3      False  \n",
      "326       65       65     50           3      False  \n",
      "327       85      115     20           3      False  \n",
      "328       55       55     50           3      False  \n",
      "329       55       95     50           3      False  \n",
      "       #               Name    Type 1   Type 2  Total  HP  Attack  Defense  \\\n",
      "330  304               Aron     Steel     Rock    330  50      70      100   \n",
      "331  305             Lairon     Steel     Rock    430  60      90      140   \n",
      "332  306             Aggron     Steel     Rock    530  70     110      180   \n",
      "333  306  AggronMega Aggron     Steel      NaN    630  70     140      230   \n",
      "334  307           Meditite  Fighting  Psychic    280  30      40       55   \n",
      "\n",
      "     Sp. Atk  Sp. Def  Speed  Generation  Legendary  \n",
      "330       40       40     30           3      False  \n",
      "331       50       50     40           3      False  \n",
      "332       60       60     50           3      False  \n",
      "333       60       80     50           3      False  \n",
      "334       40       55     60           3      False  \n",
      "       #                     Name    Type 1   Type 2  Total  HP  Attack  \\\n",
      "335  308                 Medicham  Fighting  Psychic    410  60      60   \n",
      "336  308    MedichamMega Medicham  Fighting  Psychic    510  60     100   \n",
      "337  309                Electrike  Electric      NaN    295  40      45   \n",
      "338  310                Manectric  Electric      NaN    475  70      75   \n",
      "339  310  ManectricMega Manectric  Electric      NaN    575  70      75   \n",
      "\n",
      "     Defense  Sp. Atk  Sp. Def  Speed  Generation  Legendary  \n",
      "335       75       60       75     80           3      False  \n",
      "336       85       80       85    100           3      False  \n",
      "337       40       65       40     65           3      False  \n",
      "338       60      105       60    105           3      False  \n",
      "339       80      135       80    135           3      False  \n",
      "       #      Name    Type 1  Type 2  Total  HP  Attack  Defense  Sp. Atk  \\\n",
      "340  311    Plusle  Electric     NaN    405  60      50       40       85   \n",
      "341  312     Minun  Electric     NaN    405  60      40       50       75   \n",
      "342  313   Volbeat       Bug     NaN    400  65      73       55       47   \n",
      "343  314  Illumise       Bug     NaN    400  65      47       55       73   \n",
      "344  315   Roselia     Grass  Poison    400  50      60       45      100   \n",
      "\n",
      "     Sp. Def  Speed  Generation  Legendary  \n",
      "340       75     95           3      False  \n",
      "341       85     95           3      False  \n",
      "342       75     85           3      False  \n",
      "343       75     85           3      False  \n",
      "344       80     65           3      False  \n",
      "       #                   Name  Type 1 Type 2  Total   HP  Attack  Defense  \\\n",
      "345  316                 Gulpin  Poison    NaN    302   70      43       53   \n",
      "346  317                 Swalot  Poison    NaN    467  100      73       83   \n",
      "347  318               Carvanha   Water   Dark    305   45      90       20   \n",
      "348  319               Sharpedo   Water   Dark    460   70     120       40   \n",
      "349  319  SharpedoMega Sharpedo   Water   Dark    560   70     140       70   \n",
      "\n",
      "     Sp. Atk  Sp. Def  Speed  Generation  Legendary  \n",
      "345       43       53     40           3      False  \n",
      "346       73       83     55           3      False  \n",
      "347       65       20     65           3      False  \n",
      "348       95       40     95           3      False  \n",
      "349      110       65    105           3      False  \n",
      "       #                   Name Type 1  Type 2  Total   HP  Attack  Defense  \\\n",
      "350  320                Wailmer  Water     NaN    400  130      70       35   \n",
      "351  321                Wailord  Water     NaN    500  170      90       45   \n",
      "352  322                  Numel   Fire  Ground    305   60      60       40   \n",
      "353  323               Camerupt   Fire  Ground    460   70     100       70   \n",
      "354  323  CameruptMega Camerupt   Fire  Ground    560   70     120      100   \n",
      "\n",
      "     Sp. Atk  Sp. Def  Speed  Generation  Legendary  \n",
      "350       70       35     60           3      False  \n",
      "351       90       45     60           3      False  \n",
      "352       65       45     35           3      False  \n",
      "353      105       75     40           3      False  \n",
      "354      145      105     20           3      False  \n",
      "       #      Name   Type 1  Type 2  Total  HP  Attack  Defense  Sp. Atk  \\\n",
      "355  324   Torkoal     Fire     NaN    470  70      85      140       85   \n",
      "356  325    Spoink  Psychic     NaN    330  60      25       35       70   \n",
      "357  326   Grumpig  Psychic     NaN    470  80      45       65       90   \n",
      "358  327    Spinda   Normal     NaN    360  60      60       60       60   \n",
      "359  328  Trapinch   Ground     NaN    290  45     100       45       45   \n",
      "\n",
      "     Sp. Def  Speed  Generation  Legendary  \n",
      "355       70     20           3      False  \n",
      "356       80     60           3      False  \n",
      "357      110     80           3      False  \n",
      "358       60     60           3      False  \n",
      "359       45     10           3      False  \n",
      "       #      Name  Type 1  Type 2  Total  HP  Attack  Defense  Sp. Atk  \\\n",
      "360  329   Vibrava  Ground  Dragon    340  50      70       50       50   \n",
      "361  330    Flygon  Ground  Dragon    520  80     100       80       80   \n",
      "362  331    Cacnea   Grass     NaN    335  50      85       40       85   \n",
      "363  332  Cacturne   Grass    Dark    475  70     115       60      115   \n",
      "364  333    Swablu  Normal  Flying    310  45      40       60       40   \n",
      "\n",
      "     Sp. Def  Speed  Generation  Legendary  \n",
      "360       50     70           3      False  \n",
      "361       80    100           3      False  \n",
      "362       40     35           3      False  \n",
      "363       60     55           3      False  \n",
      "364       75     50           3      False  \n",
      "       #                 Name  Type 1   Type 2  Total  HP  Attack  Defense  \\\n",
      "365  334              Altaria  Dragon   Flying    490  75      70       90   \n",
      "366  334  AltariaMega Altaria  Dragon    Fairy    590  75     110      110   \n",
      "367  335             Zangoose  Normal      NaN    458  73     115       60   \n",
      "368  336              Seviper  Poison      NaN    458  73     100       60   \n",
      "369  337             Lunatone    Rock  Psychic    440  70      55       65   \n",
      "\n",
      "     Sp. Atk  Sp. Def  Speed  Generation  Legendary  \n",
      "365       70      105     80           3      False  \n",
      "366      110      105     80           3      False  \n",
      "367       60       60     90           3      False  \n",
      "368      100       60     65           3      False  \n",
      "369       95       85     70           3      False  \n",
      "       #       Name Type 1   Type 2  Total   HP  Attack  Defense  Sp. Atk  \\\n",
      "370  338    Solrock   Rock  Psychic    440   70      95       85       55   \n",
      "371  339   Barboach  Water   Ground    288   50      48       43       46   \n",
      "372  340   Whiscash  Water   Ground    468  110      78       73       76   \n",
      "373  341   Corphish  Water      NaN    308   43      80       65       50   \n",
      "374  342  Crawdaunt  Water     Dark    468   63     120       85       90   \n",
      "\n",
      "     Sp. Def  Speed  Generation  Legendary  \n",
      "370       65     70           3      False  \n",
      "371       41     60           3      False  \n",
      "372       71     60           3      False  \n",
      "373       35     35           3      False  \n",
      "374       55     55           3      False  \n"
     ]
    },
    {
     "name": "stdout",
     "output_type": "stream",
     "text": [
      "       #     Name  Type 1   Type 2  Total  HP  Attack  Defense  Sp. Atk  \\\n",
      "375  343   Baltoy  Ground  Psychic    300  40      40       55       40   \n",
      "376  344  Claydol  Ground  Psychic    500  60      70      105       70   \n",
      "377  345   Lileep    Rock    Grass    355  66      41       77       61   \n",
      "378  346  Cradily    Rock    Grass    495  86      81       97       81   \n",
      "379  347  Anorith    Rock      Bug    355  45      95       50       40   \n",
      "\n",
      "     Sp. Def  Speed  Generation  Legendary  \n",
      "375       70     55           3      False  \n",
      "376      120     75           3      False  \n",
      "377       87     23           3      False  \n",
      "378      107     43           3      False  \n",
      "379       50     75           3      False  \n",
      "       #      Name  Type 1 Type 2  Total  HP  Attack  Defense  Sp. Atk  \\\n",
      "380  348   Armaldo    Rock    Bug    495  75     125      100       70   \n",
      "381  349    Feebas   Water    NaN    200  20      15       20       10   \n",
      "382  350   Milotic   Water    NaN    540  95      60       79      100   \n",
      "383  351  Castform  Normal    NaN    420  70      70       70       70   \n",
      "384  352   Kecleon  Normal    NaN    440  60      90       70       60   \n",
      "\n",
      "     Sp. Def  Speed  Generation  Legendary  \n",
      "380       80     45           3      False  \n",
      "381       55     80           3      False  \n",
      "382      125     81           3      False  \n",
      "383       70     70           3      False  \n",
      "384      120     40           3      False  \n",
      "       #                 Name Type 1  Type 2  Total  HP  Attack  Defense  \\\n",
      "385  353              Shuppet  Ghost     NaN    295  44      75       35   \n",
      "386  354              Banette  Ghost     NaN    455  64     115       65   \n",
      "387  354  BanetteMega Banette  Ghost     NaN    555  64     165       75   \n",
      "388  355              Duskull  Ghost     NaN    295  20      40       90   \n",
      "389  356             Dusclops  Ghost     NaN    455  40      70      130   \n",
      "\n",
      "     Sp. Atk  Sp. Def  Speed  Generation  Legendary  \n",
      "385       63       33     45           3      False  \n",
      "386       83       63     65           3      False  \n",
      "387       93       83     75           3      False  \n",
      "388       30       90     25           3      False  \n",
      "389       60      130     25           3      False  \n",
      "       #             Name   Type 1  Type 2  Total  HP  Attack  Defense  \\\n",
      "390  357          Tropius    Grass  Flying    460  99      68       83   \n",
      "391  358         Chimecho  Psychic     NaN    425  65      50       70   \n",
      "392  359            Absol     Dark     NaN    465  65     130       60   \n",
      "393  359  AbsolMega Absol     Dark     NaN    565  65     150       60   \n",
      "394  360           Wynaut  Psychic     NaN    260  95      23       48   \n",
      "\n",
      "     Sp. Atk  Sp. Def  Speed  Generation  Legendary  \n",
      "390       72       87     51           3      False  \n",
      "391       95       80     65           3      False  \n",
      "392       75       60     75           3      False  \n",
      "393      115       60    115           3      False  \n",
      "394       23       48     23           3      False  \n",
      "       #               Name Type 1 Type 2  Total  HP  Attack  Defense  \\\n",
      "395  361            Snorunt    Ice    NaN    300  50      50       50   \n",
      "396  362             Glalie    Ice    NaN    480  80      80       80   \n",
      "397  362  GlalieMega Glalie    Ice    NaN    580  80     120       80   \n",
      "398  363             Spheal    Ice  Water    290  70      40       50   \n",
      "399  364             Sealeo    Ice  Water    410  90      60       70   \n",
      "\n",
      "     Sp. Atk  Sp. Def  Speed  Generation  Legendary  \n",
      "395       50       50     50           3      False  \n",
      "396       80       80     80           3      False  \n",
      "397      120       80    100           3      False  \n",
      "398       55       50     25           3      False  \n",
      "399       75       70     45           3      False  \n",
      "       #       Name Type 1 Type 2  Total   HP  Attack  Defense  Sp. Atk  \\\n",
      "400  365    Walrein    Ice  Water    530  110      80       90       95   \n",
      "401  366   Clamperl  Water    NaN    345   35      64       85       74   \n",
      "402  367    Huntail  Water    NaN    485   55     104      105       94   \n",
      "403  368   Gorebyss  Water    NaN    485   55      84      105      114   \n",
      "404  369  Relicanth  Water   Rock    485  100      90      130       45   \n",
      "\n",
      "     Sp. Def  Speed  Generation  Legendary  \n",
      "400       90     65           3      False  \n",
      "401       55     32           3      False  \n",
      "402       75     52           3      False  \n",
      "403       75     52           3      False  \n",
      "404       65     55           3      False  \n",
      "       #                     Name  Type 1  Type 2  Total  HP  Attack  Defense  \\\n",
      "405  370                  Luvdisc   Water     NaN    330  43      30       55   \n",
      "406  371                    Bagon  Dragon     NaN    300  45      75       60   \n",
      "407  372                  Shelgon  Dragon     NaN    420  65      95      100   \n",
      "408  373                Salamence  Dragon  Flying    600  95     135       80   \n",
      "409  373  SalamenceMega Salamence  Dragon  Flying    700  95     145      130   \n",
      "\n",
      "     Sp. Atk  Sp. Def  Speed  Generation  Legendary  \n",
      "405       40       65     97           3      False  \n",
      "406       40       30     50           3      False  \n",
      "407       60       50     50           3      False  \n",
      "408      110       80    100           3      False  \n",
      "409      120       90    120           3      False  \n",
      "       #                     Name Type 1   Type 2  Total  HP  Attack  Defense  \\\n",
      "410  374                   Beldum  Steel  Psychic    300  40      55       80   \n",
      "411  375                   Metang  Steel  Psychic    420  60      75      100   \n",
      "412  376                Metagross  Steel  Psychic    600  80     135      130   \n",
      "413  376  MetagrossMega Metagross  Steel  Psychic    700  80     145      150   \n",
      "414  377                 Regirock   Rock      NaN    580  80     100      200   \n",
      "\n",
      "     Sp. Atk  Sp. Def  Speed  Generation  Legendary  \n",
      "410       35       60     30           3      False  \n",
      "411       55       80     50           3      False  \n",
      "412       95       90     70           3      False  \n",
      "413      105      110    110           3      False  \n",
      "414       50      100     50           3       True  \n",
      "       #               Name  Type 1   Type 2  Total  HP  Attack  Defense  \\\n",
      "415  378             Regice     Ice      NaN    580  80      50      100   \n",
      "416  379          Registeel   Steel      NaN    580  80      75      150   \n",
      "417  380             Latias  Dragon  Psychic    600  80      80       90   \n",
      "418  380  LatiasMega Latias  Dragon  Psychic    700  80     100      120   \n",
      "419  381             Latios  Dragon  Psychic    600  80      90       80   \n",
      "\n",
      "     Sp. Atk  Sp. Def  Speed  Generation  Legendary  \n",
      "415      100      200     50           3       True  \n",
      "416       75      150     50           3       True  \n",
      "417      110      130    110           3       True  \n",
      "418      140      150    110           3       True  \n",
      "419      130      110    110           3       True  \n",
      "       #                   Name  Type 1   Type 2  Total   HP  Attack  Defense  \\\n",
      "420  381      LatiosMega Latios  Dragon  Psychic    700   80     130      100   \n",
      "421  382                 Kyogre   Water      NaN    670  100     100       90   \n",
      "422  382    KyogrePrimal Kyogre   Water      NaN    770  100     150       90   \n",
      "423  383                Groudon  Ground      NaN    670  100     150      140   \n",
      "424  383  GroudonPrimal Groudon  Ground     Fire    770  100     180      160   \n",
      "\n",
      "     Sp. Atk  Sp. Def  Speed  Generation  Legendary  \n",
      "420      160      120    110           3       True  \n",
      "421      150      140     90           3       True  \n",
      "422      180      160     90           3       True  \n",
      "423      100       90     90           3       True  \n",
      "424      150       90     90           3       True  \n",
      "       #                   Name   Type 1   Type 2  Total   HP  Attack  \\\n",
      "425  384               Rayquaza   Dragon   Flying    680  105     150   \n",
      "426  384  RayquazaMega Rayquaza   Dragon   Flying    780  105     180   \n",
      "427  385                Jirachi    Steel  Psychic    600  100     100   \n",
      "428  386     DeoxysNormal Forme  Psychic      NaN    600   50     150   \n",
      "429  386     DeoxysAttack Forme  Psychic      NaN    600   50     180   \n",
      "\n",
      "     Defense  Sp. Atk  Sp. Def  Speed  Generation  Legendary  \n",
      "425       90      150       90     95           3       True  \n",
      "426      100      180      100    115           3       True  \n",
      "427      100      100      100    100           3       True  \n",
      "428       50      150       50    150           3       True  \n",
      "429       20      180       20    150           3       True  \n",
      "       #                 Name   Type 1  Type 2  Total  HP  Attack  Defense  \\\n",
      "430  386  DeoxysDefense Forme  Psychic     NaN    600  50      70      160   \n",
      "431  386    DeoxysSpeed Forme  Psychic     NaN    600  50      95       90   \n",
      "432  387              Turtwig    Grass     NaN    318  55      68       64   \n",
      "433  388               Grotle    Grass     NaN    405  75      89       85   \n",
      "434  389             Torterra    Grass  Ground    525  95     109      105   \n",
      "\n",
      "     Sp. Atk  Sp. Def  Speed  Generation  Legendary  \n",
      "430       70      160     90           3       True  \n",
      "431       95       90    180           3       True  \n",
      "432       45       55     31           4      False  \n",
      "433       55       65     36           4      False  \n",
      "434       75       85     56           4      False  \n",
      "       #       Name Type 1    Type 2  Total  HP  Attack  Defense  Sp. Atk  \\\n",
      "435  390   Chimchar   Fire       NaN    309  44      58       44       58   \n",
      "436  391   Monferno   Fire  Fighting    405  64      78       52       78   \n",
      "437  392  Infernape   Fire  Fighting    534  76     104       71      104   \n",
      "438  393     Piplup  Water       NaN    314  53      51       53       61   \n",
      "439  394   Prinplup  Water       NaN    405  64      66       68       81   \n",
      "\n",
      "     Sp. Def  Speed  Generation  Legendary  \n",
      "435       44     61           4      False  \n",
      "436       52     81           4      False  \n",
      "437       71    108           4      False  \n",
      "438       56     40           4      False  \n",
      "439       76     50           4      False  \n",
      "       #       Name  Type 1  Type 2  Total  HP  Attack  Defense  Sp. Atk  \\\n",
      "440  395   Empoleon   Water   Steel    530  84      86       88      111   \n",
      "441  396     Starly  Normal  Flying    245  40      55       30       30   \n",
      "442  397   Staravia  Normal  Flying    340  55      75       50       40   \n",
      "443  398  Staraptor  Normal  Flying    485  85     120       70       50   \n",
      "444  399     Bidoof  Normal     NaN    250  59      45       40       35   \n",
      "\n",
      "     Sp. Def  Speed  Generation  Legendary  \n",
      "440      101     60           4      False  \n",
      "441       30     60           4      False  \n",
      "442       40     80           4      False  \n",
      "443       60    100           4      False  \n",
      "444       40     31           4      False  \n",
      "       #        Name    Type 1 Type 2  Total  HP  Attack  Defense  Sp. Atk  \\\n",
      "445  400     Bibarel    Normal  Water    410  79      85       60       55   \n",
      "446  401   Kricketot       Bug    NaN    194  37      25       41       25   \n",
      "447  402  Kricketune       Bug    NaN    384  77      85       51       55   \n",
      "448  403       Shinx  Electric    NaN    263  45      65       34       40   \n",
      "449  404       Luxio  Electric    NaN    363  60      85       49       60   \n",
      "\n",
      "     Sp. Def  Speed  Generation  Legendary  \n",
      "445       60     71           4      False  \n",
      "446       41     25           4      False  \n",
      "447       51     65           4      False  \n",
      "448       34     45           4      False  \n",
      "449       49     60           4      False  \n",
      "       #       Name    Type 1  Type 2  Total  HP  Attack  Defense  Sp. Atk  \\\n",
      "450  405     Luxray  Electric     NaN    523  80     120       79       95   \n",
      "451  406      Budew     Grass  Poison    280  40      30       35       50   \n",
      "452  407   Roserade     Grass  Poison    515  60      70       65      125   \n",
      "453  408   Cranidos      Rock     NaN    350  67     125       40       30   \n",
      "454  409  Rampardos      Rock     NaN    495  97     165       60       65   \n",
      "\n",
      "     Sp. Def  Speed  Generation  Legendary  \n",
      "450       79     70           4      False  \n",
      "451       70     55           4      False  \n",
      "452      105     90           4      False  \n",
      "453       30     58           4      False  \n",
      "454       50     58           4      False  \n",
      "       #                 Name Type 1  Type 2  Total  HP  Attack  Defense  \\\n",
      "455  410             Shieldon   Rock   Steel    350  30      42      118   \n",
      "456  411            Bastiodon   Rock   Steel    495  60      52      168   \n",
      "457  412                Burmy    Bug     NaN    224  40      29       45   \n",
      "458  413  WormadamPlant Cloak    Bug   Grass    424  60      59       85   \n",
      "459  413  WormadamSandy Cloak    Bug  Ground    424  60      79      105   \n",
      "\n",
      "     Sp. Atk  Sp. Def  Speed  Generation  Legendary  \n",
      "455       42       88     30           4      False  \n",
      "456       47      138     30           4      False  \n",
      "457       29       45     36           4      False  \n",
      "458       79      105     36           4      False  \n",
      "459       59       85     36           4      False  \n",
      "       #                 Name    Type 1  Type 2  Total  HP  Attack  Defense  \\\n",
      "460  413  WormadamTrash Cloak       Bug   Steel    424  60      69       95   \n",
      "461  414               Mothim       Bug  Flying    424  70      94       50   \n",
      "462  415               Combee       Bug  Flying    244  30      30       42   \n",
      "463  416            Vespiquen       Bug  Flying    474  70      80      102   \n",
      "464  417            Pachirisu  Electric     NaN    405  60      45       70   \n",
      "\n",
      "     Sp. Atk  Sp. Def  Speed  Generation  Legendary  \n",
      "460       69       95     36           4      False  \n",
      "461       94       50     66           4      False  \n",
      "462       30       42     70           4      False  \n",
      "463       80      102     40           4      False  \n",
      "464       45       90     95           4      False  \n",
      "       #      Name Type 1  Type 2  Total  HP  Attack  Defense  Sp. Atk  \\\n",
      "465  418    Buizel  Water     NaN    330  55      65       35       60   \n",
      "466  419  Floatzel  Water     NaN    495  85     105       55       85   \n",
      "467  420   Cherubi  Grass     NaN    275  45      35       45       62   \n",
      "468  421   Cherrim  Grass     NaN    450  70      60       70       87   \n",
      "469  422   Shellos  Water     NaN    325  76      48       48       57   \n",
      "\n",
      "     Sp. Def  Speed  Generation  Legendary  \n",
      "465       30     85           4      False  \n",
      "466       50    115           4      False  \n",
      "467       53     35           4      False  \n",
      "468       78     85           4      False  \n",
      "469       62     34           4      False  \n",
      "       #       Name  Type 1  Type 2  Total   HP  Attack  Defense  Sp. Atk  \\\n",
      "470  423  Gastrodon   Water  Ground    475  111      83       68       92   \n",
      "471  424    Ambipom  Normal     NaN    482   75     100       66       60   \n",
      "472  425   Drifloon   Ghost  Flying    348   90      50       34       60   \n",
      "473  426   Drifblim   Ghost  Flying    498  150      80       44       90   \n",
      "474  427    Buneary  Normal     NaN    350   55      66       44       44   \n",
      "\n",
      "     Sp. Def  Speed  Generation  Legendary  \n",
      "470       82     39           4      False  \n",
      "471       66    115           4      False  \n",
      "472       44     70           4      False  \n",
      "473       54     80           4      False  \n",
      "474       56     85           4      False  \n",
      "       #                 Name  Type 1    Type 2  Total   HP  Attack  Defense  \\\n",
      "475  428              Lopunny  Normal       NaN    480   65      76       84   \n",
      "476  428  LopunnyMega Lopunny  Normal  Fighting    580   65     136       94   \n",
      "477  429            Mismagius   Ghost       NaN    495   60      60       60   \n",
      "478  430            Honchkrow    Dark    Flying    505  100     125       52   \n",
      "479  431              Glameow  Normal       NaN    310   49      55       42   \n",
      "\n",
      "     Sp. Atk  Sp. Def  Speed  Generation  Legendary  \n",
      "475       54       96    105           4      False  \n",
      "476       54       96    135           4      False  \n",
      "477      105      105    105           4      False  \n",
      "478      105       52     71           4      False  \n",
      "479       42       37     85           4      False  \n",
      "       #       Name   Type 1   Type 2  Total   HP  Attack  Defense  Sp. Atk  \\\n",
      "480  432    Purugly   Normal      NaN    452   71      82       64       64   \n",
      "481  433  Chingling  Psychic      NaN    285   45      30       50       65   \n",
      "482  434     Stunky   Poison     Dark    329   63      63       47       41   \n",
      "483  435   Skuntank   Poison     Dark    479  103      93       67       71   \n",
      "484  436    Bronzor    Steel  Psychic    300   57      24       86       24   \n",
      "\n",
      "     Sp. Def  Speed  Generation  Legendary  \n",
      "480       59    112           4      False  \n",
      "481       50     45           4      False  \n",
      "482       41     74           4      False  \n",
      "483       61     84           4      False  \n",
      "484       86     23           4      False  \n",
      "       #      Name   Type 1   Type 2  Total   HP  Attack  Defense  Sp. Atk  \\\n",
      "485  437  Bronzong    Steel  Psychic    500   67      89      116       79   \n",
      "486  438    Bonsly     Rock      NaN    290   50      80       95       10   \n",
      "487  439  Mime Jr.  Psychic    Fairy    310   20      25       45       70   \n",
      "488  440   Happiny   Normal      NaN    220  100       5        5       15   \n",
      "489  441    Chatot   Normal   Flying    411   76      65       45       92   \n",
      "\n",
      "     Sp. Def  Speed  Generation  Legendary  \n",
      "485      116     33           4      False  \n",
      "486       45     10           4      False  \n",
      "487       90     60           4      False  \n",
      "488       65     30           4      False  \n",
      "489       42     91           4      False  \n",
      "       #                   Name  Type 1  Type 2  Total   HP  Attack  Defense  \\\n",
      "490  442              Spiritomb   Ghost    Dark    485   50      92      108   \n",
      "491  443                  Gible  Dragon  Ground    300   58      70       45   \n",
      "492  444                 Gabite  Dragon  Ground    410   68      90       65   \n",
      "493  445               Garchomp  Dragon  Ground    600  108     130       95   \n",
      "494  445  GarchompMega Garchomp  Dragon  Ground    700  108     170      115   \n",
      "\n",
      "     Sp. Atk  Sp. Def  Speed  Generation  Legendary  \n",
      "490       92      108     35           4      False  \n",
      "491       40       45     42           4      False  \n",
      "492       50       55     82           4      False  \n",
      "493       80       85    102           4      False  \n",
      "494      120       95     92           4      False  \n",
      "       #                 Name    Type 1 Type 2  Total   HP  Attack  Defense  \\\n",
      "495  446             Munchlax    Normal    NaN    390  135      85       40   \n",
      "496  447                Riolu  Fighting    NaN    285   40      70       40   \n",
      "497  448              Lucario  Fighting  Steel    525   70     110       70   \n",
      "498  448  LucarioMega Lucario  Fighting  Steel    625   70     145       88   \n",
      "499  449           Hippopotas    Ground    NaN    330   68      72       78   \n",
      "\n",
      "     Sp. Atk  Sp. Def  Speed  Generation  Legendary  \n",
      "495       40       85      5           4      False  \n",
      "496       35       40     60           4      False  \n",
      "497      115       70     90           4      False  \n",
      "498      140       70    112           4      False  \n",
      "499       38       42     32           4      False  \n"
     ]
    },
    {
     "name": "stdout",
     "output_type": "stream",
     "text": [
      "       #       Name  Type 1    Type 2  Total   HP  Attack  Defense  Sp. Atk  \\\n",
      "500  450  Hippowdon  Ground       NaN    525  108     112      118       68   \n",
      "501  451    Skorupi  Poison       Bug    330   40      50       90       30   \n",
      "502  452    Drapion  Poison      Dark    500   70      90      110       60   \n",
      "503  453   Croagunk  Poison  Fighting    300   48      61       40       61   \n",
      "504  454  Toxicroak  Poison  Fighting    490   83     106       65       86   \n",
      "\n",
      "     Sp. Def  Speed  Generation  Legendary  \n",
      "500       72     47           4      False  \n",
      "501       55     65           4      False  \n",
      "502       75     95           4      False  \n",
      "503       40     50           4      False  \n",
      "504       65     85           4      False  \n",
      "       #       Name Type 1  Type 2  Total  HP  Attack  Defense  Sp. Atk  \\\n",
      "505  455  Carnivine  Grass     NaN    454  74     100       72       90   \n",
      "506  456    Finneon  Water     NaN    330  49      49       56       49   \n",
      "507  457   Lumineon  Water     NaN    460  69      69       76       69   \n",
      "508  458    Mantyke  Water  Flying    345  45      20       50       60   \n",
      "509  459     Snover  Grass     Ice    334  60      62       50       62   \n",
      "\n",
      "     Sp. Def  Speed  Generation  Legendary  \n",
      "505       72     46           4      False  \n",
      "506       61     66           4      False  \n",
      "507       86     91           4      False  \n",
      "508      120     50           4      False  \n",
      "509       60     40           4      False  \n",
      "       #                     Name    Type 1 Type 2  Total   HP  Attack  \\\n",
      "510  460                Abomasnow     Grass    Ice    494   90      92   \n",
      "511  460  AbomasnowMega Abomasnow     Grass    Ice    594   90     132   \n",
      "512  461                  Weavile      Dark    Ice    510   70     120   \n",
      "513  462                Magnezone  Electric  Steel    535   70      70   \n",
      "514  463               Lickilicky    Normal    NaN    515  110      85   \n",
      "\n",
      "     Defense  Sp. Atk  Sp. Def  Speed  Generation  Legendary  \n",
      "510       75       92       85     60           4      False  \n",
      "511      105      132      105     30           4      False  \n",
      "512       65       45       85    125           4      False  \n",
      "513      115      130       90     60           4      False  \n",
      "514       95       80       95     50           4      False  \n",
      "       #        Name    Type 1  Type 2  Total   HP  Attack  Defense  Sp. Atk  \\\n",
      "515  464   Rhyperior    Ground    Rock    535  115     140      130       55   \n",
      "516  465   Tangrowth     Grass     NaN    535  100     100      125      110   \n",
      "517  466  Electivire  Electric     NaN    540   75     123       67       95   \n",
      "518  467   Magmortar      Fire     NaN    540   75      95       67      125   \n",
      "519  468    Togekiss     Fairy  Flying    545   85      50       95      120   \n",
      "\n",
      "     Sp. Def  Speed  Generation  Legendary  \n",
      "515       55     40           4      False  \n",
      "516       50     50           4      False  \n",
      "517       85     95           4      False  \n",
      "518       95     83           4      False  \n",
      "519      115     80           4      False  \n",
      "       #       Name  Type 1  Type 2  Total   HP  Attack  Defense  Sp. Atk  \\\n",
      "520  469    Yanmega     Bug  Flying    515   86      76       86      116   \n",
      "521  470    Leafeon   Grass     NaN    525   65     110      130       60   \n",
      "522  471    Glaceon     Ice     NaN    525   65      60      110      130   \n",
      "523  472    Gliscor  Ground  Flying    510   75      95      125       45   \n",
      "524  473  Mamoswine     Ice  Ground    530  110     130       80       70   \n",
      "\n",
      "     Sp. Def  Speed  Generation  Legendary  \n",
      "520       56     95           4      False  \n",
      "521       65     95           4      False  \n",
      "522       95     65           4      False  \n",
      "523       75     95           4      False  \n",
      "524       60     80           4      False  \n",
      "       #                 Name   Type 1    Type 2  Total  HP  Attack  Defense  \\\n",
      "525  474            Porygon-Z   Normal       NaN    535  85      80       70   \n",
      "526  475              Gallade  Psychic  Fighting    518  68     125       65   \n",
      "527  475  GalladeMega Gallade  Psychic  Fighting    618  68     165       95   \n",
      "528  476            Probopass     Rock     Steel    525  60      55      145   \n",
      "529  477             Dusknoir    Ghost       NaN    525  45     100      135   \n",
      "\n",
      "     Sp. Atk  Sp. Def  Speed  Generation  Legendary  \n",
      "525      135       75     90           4      False  \n",
      "526       65      115     80           4      False  \n",
      "527       65      115    110           4      False  \n",
      "528       75      150     40           4      False  \n",
      "529       65      135     45           4      False  \n",
      "       #              Name    Type 1 Type 2  Total  HP  Attack  Defense  \\\n",
      "530  478          Froslass       Ice  Ghost    480  70      80       70   \n",
      "531  479             Rotom  Electric  Ghost    440  50      50       77   \n",
      "532  479   RotomHeat Rotom  Electric   Fire    520  50      65      107   \n",
      "533  479   RotomWash Rotom  Electric  Water    520  50      65      107   \n",
      "534  479  RotomFrost Rotom  Electric    Ice    520  50      65      107   \n",
      "\n",
      "     Sp. Atk  Sp. Def  Speed  Generation  Legendary  \n",
      "530       80       70    110           4      False  \n",
      "531       95       77     91           4      False  \n",
      "532      105      107     86           4      False  \n",
      "533      105      107     86           4      False  \n",
      "534      105      107     86           4      False  \n",
      "       #            Name    Type 1  Type 2  Total  HP  Attack  Defense  \\\n",
      "535  479  RotomFan Rotom  Electric  Flying    520  50      65      107   \n",
      "536  479  RotomMow Rotom  Electric   Grass    520  50      65      107   \n",
      "537  480            Uxie   Psychic     NaN    580  75      75      130   \n",
      "538  481         Mesprit   Psychic     NaN    580  80     105      105   \n",
      "539  482           Azelf   Psychic     NaN    580  75     125       70   \n",
      "\n",
      "     Sp. Atk  Sp. Def  Speed  Generation  Legendary  \n",
      "535      105      107     86           4      False  \n",
      "536      105      107     86           4      False  \n",
      "537       75      130     95           4       True  \n",
      "538      105      105     80           4       True  \n",
      "539      125       70    115           4       True  \n",
      "       #                   Name  Type 1  Type 2  Total   HP  Attack  Defense  \\\n",
      "540  483                 Dialga   Steel  Dragon    680  100     120      120   \n",
      "541  484                 Palkia   Water  Dragon    680   90     120      100   \n",
      "542  485                Heatran    Fire   Steel    600   91      90      106   \n",
      "543  486              Regigigas  Normal     NaN    670  110     160      110   \n",
      "544  487  GiratinaAltered Forme   Ghost  Dragon    680  150     100      120   \n",
      "\n",
      "     Sp. Atk  Sp. Def  Speed  Generation  Legendary  \n",
      "540      150      100     90           4       True  \n",
      "541      150      120    100           4       True  \n",
      "542      130      106     77           4       True  \n",
      "543       80      110    100           4       True  \n",
      "544      100      120     90           4       True  \n",
      "       #                  Name   Type 1  Type 2  Total   HP  Attack  Defense  \\\n",
      "545  487  GiratinaOrigin Forme    Ghost  Dragon    680  150     120      100   \n",
      "546  488             Cresselia  Psychic     NaN    600  120      70      120   \n",
      "547  489                Phione    Water     NaN    480   80      80       80   \n",
      "548  490               Manaphy    Water     NaN    600  100     100      100   \n",
      "549  491               Darkrai     Dark     NaN    600   70      90       90   \n",
      "\n",
      "     Sp. Atk  Sp. Def  Speed  Generation  Legendary  \n",
      "545      120      100     90           4       True  \n",
      "546       75      130     85           4      False  \n",
      "547       80       80     80           4      False  \n",
      "548      100      100    100           4      False  \n",
      "549      135       90    125           4       True  \n",
      "       #               Name   Type 1  Type 2  Total   HP  Attack  Defense  \\\n",
      "550  492  ShayminLand Forme    Grass     NaN    600  100     100      100   \n",
      "551  492   ShayminSky Forme    Grass  Flying    600  100     103       75   \n",
      "552  493             Arceus   Normal     NaN    720  120     120      120   \n",
      "553  494            Victini  Psychic    Fire    600  100     100      100   \n",
      "554  495              Snivy    Grass     NaN    308   45      45       55   \n",
      "\n",
      "     Sp. Atk  Sp. Def  Speed  Generation  Legendary  \n",
      "550      100      100    100           4       True  \n",
      "551      120       75    127           4       True  \n",
      "552      120      120    120           4       True  \n",
      "553      100      100    100           5       True  \n",
      "554       45       55     63           5      False  \n",
      "       #       Name Type 1    Type 2  Total   HP  Attack  Defense  Sp. Atk  \\\n",
      "555  496    Servine  Grass       NaN    413   60      60       75       60   \n",
      "556  497  Serperior  Grass       NaN    528   75      75       95       75   \n",
      "557  498      Tepig   Fire       NaN    308   65      63       45       45   \n",
      "558  499    Pignite   Fire  Fighting    418   90      93       55       70   \n",
      "559  500     Emboar   Fire  Fighting    528  110     123       65      100   \n",
      "\n",
      "     Sp. Def  Speed  Generation  Legendary  \n",
      "555       75     83           5      False  \n",
      "556       95    113           5      False  \n",
      "557       45     45           5      False  \n",
      "558       55     55           5      False  \n",
      "559       65     65           5      False  \n",
      "       #      Name  Type 1  Type 2  Total  HP  Attack  Defense  Sp. Atk  \\\n",
      "560  501  Oshawott   Water     NaN    308  55      55       45       63   \n",
      "561  502    Dewott   Water     NaN    413  75      75       60       83   \n",
      "562  503  Samurott   Water     NaN    528  95     100       85      108   \n",
      "563  504    Patrat  Normal     NaN    255  45      55       39       35   \n",
      "564  505   Watchog  Normal     NaN    420  60      85       69       60   \n",
      "\n",
      "     Sp. Def  Speed  Generation  Legendary  \n",
      "560       45     45           5      False  \n",
      "561       60     60           5      False  \n",
      "562       70     70           5      False  \n",
      "563       39     42           5      False  \n",
      "564       69     77           5      False  \n",
      "       #       Name  Type 1  Type 2  Total  HP  Attack  Defense  Sp. Atk  \\\n",
      "565  506   Lillipup  Normal     NaN    275  45      60       45       25   \n",
      "566  507    Herdier  Normal     NaN    370  65      80       65       35   \n",
      "567  508  Stoutland  Normal     NaN    500  85     110       90       45   \n",
      "568  509   Purrloin    Dark     NaN    281  41      50       37       50   \n",
      "569  510    Liepard    Dark     NaN    446  64      88       50       88   \n",
      "\n",
      "     Sp. Def  Speed  Generation  Legendary  \n",
      "565       45     55           5      False  \n",
      "566       65     60           5      False  \n",
      "567       90     80           5      False  \n",
      "568       37     66           5      False  \n",
      "569       50    106           5      False  \n",
      "       #      Name Type 1  Type 2  Total  HP  Attack  Defense  Sp. Atk  \\\n",
      "570  511   Pansage  Grass     NaN    316  50      53       48       53   \n",
      "571  512  Simisage  Grass     NaN    498  75      98       63       98   \n",
      "572  513   Pansear   Fire     NaN    316  50      53       48       53   \n",
      "573  514  Simisear   Fire     NaN    498  75      98       63       98   \n",
      "574  515   Panpour  Water     NaN    316  50      53       48       53   \n",
      "\n",
      "     Sp. Def  Speed  Generation  Legendary  \n",
      "570       48     64           5      False  \n",
      "571       63    101           5      False  \n",
      "572       48     64           5      False  \n",
      "573       63    101           5      False  \n",
      "574       48     64           5      False  \n",
      "       #       Name   Type 1  Type 2  Total   HP  Attack  Defense  Sp. Atk  \\\n",
      "575  516   Simipour    Water     NaN    498   75      98       63       98   \n",
      "576  517      Munna  Psychic     NaN    292   76      25       45       67   \n",
      "577  518   Musharna  Psychic     NaN    487  116      55       85      107   \n",
      "578  519     Pidove   Normal  Flying    264   50      55       50       36   \n",
      "579  520  Tranquill   Normal  Flying    358   62      77       62       50   \n",
      "\n",
      "     Sp. Def  Speed  Generation  Legendary  \n",
      "575       63    101           5      False  \n",
      "576       55     24           5      False  \n",
      "577       95     29           5      False  \n",
      "578       30     43           5      False  \n",
      "579       42     65           5      False  \n",
      "       #        Name    Type 1  Type 2  Total  HP  Attack  Defense  Sp. Atk  \\\n",
      "580  521    Unfezant    Normal  Flying    488  80     115       80       65   \n",
      "581  522     Blitzle  Electric     NaN    295  45      60       32       50   \n",
      "582  523   Zebstrika  Electric     NaN    497  75     100       63       80   \n",
      "583  524  Roggenrola      Rock     NaN    280  55      75       85       25   \n",
      "584  525     Boldore      Rock     NaN    390  70     105      105       50   \n",
      "\n",
      "     Sp. Def  Speed  Generation  Legendary  \n",
      "580       55     93           5      False  \n",
      "581       32     76           5      False  \n",
      "582       63    116           5      False  \n",
      "583       25     15           5      False  \n",
      "584       40     20           5      False  \n",
      "       #       Name   Type 1  Type 2  Total   HP  Attack  Defense  Sp. Atk  \\\n",
      "585  526   Gigalith     Rock     NaN    515   85     135      130       60   \n",
      "586  527     Woobat  Psychic  Flying    313   55      45       43       55   \n",
      "587  528    Swoobat  Psychic  Flying    425   67      57       55       77   \n",
      "588  529    Drilbur   Ground     NaN    328   60      85       40       30   \n",
      "589  530  Excadrill   Ground   Steel    508  110     135       60       50   \n",
      "\n",
      "     Sp. Def  Speed  Generation  Legendary  \n",
      "585       80     25           5      False  \n",
      "586       43     72           5      False  \n",
      "587       55    114           5      False  \n",
      "588       45     68           5      False  \n",
      "589       65     88           5      False  \n",
      "       #               Name    Type 1 Type 2  Total   HP  Attack  Defense  \\\n",
      "590  531             Audino    Normal    NaN    445  103      60       86   \n",
      "591  531  AudinoMega Audino    Normal  Fairy    545  103      60      126   \n",
      "592  532            Timburr  Fighting    NaN    305   75      80       55   \n",
      "593  533            Gurdurr  Fighting    NaN    405   85     105       85   \n",
      "594  534         Conkeldurr  Fighting    NaN    505  105     140       95   \n",
      "\n",
      "     Sp. Atk  Sp. Def  Speed  Generation  Legendary  \n",
      "590       60       86     50           5      False  \n",
      "591       80      126     50           5      False  \n",
      "592       25       35     35           5      False  \n",
      "593       40       50     40           5      False  \n",
      "594       55       65     45           5      False  \n",
      "       #        Name    Type 1  Type 2  Total   HP  Attack  Defense  Sp. Atk  \\\n",
      "595  535     Tympole     Water     NaN    294   50      50       40       50   \n",
      "596  536   Palpitoad     Water  Ground    384   75      65       55       65   \n",
      "597  537  Seismitoad     Water  Ground    509  105      95       75       85   \n",
      "598  538       Throh  Fighting     NaN    465  120     100       85       30   \n",
      "599  539        Sawk  Fighting     NaN    465   75     125       75       30   \n",
      "\n",
      "     Sp. Def  Speed  Generation  Legendary  \n",
      "595       40     64           5      False  \n",
      "596       55     69           5      False  \n",
      "597       75     74           5      False  \n",
      "598       85     45           5      False  \n",
      "599       75     85           5      False  \n",
      "       #        Name Type 1  Type 2  Total  HP  Attack  Defense  Sp. Atk  \\\n",
      "600  540    Sewaddle    Bug   Grass    310  45      53       70       40   \n",
      "601  541    Swadloon    Bug   Grass    380  55      63       90       50   \n",
      "602  542    Leavanny    Bug   Grass    500  75     103       80       70   \n",
      "603  543    Venipede    Bug  Poison    260  30      45       59       30   \n",
      "604  544  Whirlipede    Bug  Poison    360  40      55       99       40   \n",
      "\n",
      "     Sp. Def  Speed  Generation  Legendary  \n",
      "600       60     42           5      False  \n",
      "601       80     42           5      False  \n",
      "602       80     92           5      False  \n",
      "603       39     57           5      False  \n",
      "604       79     47           5      False  \n",
      "       #        Name Type 1  Type 2  Total  HP  Attack  Defense  Sp. Atk  \\\n",
      "605  545   Scolipede    Bug  Poison    485  60     100       89       55   \n",
      "606  546    Cottonee  Grass   Fairy    280  40      27       60       37   \n",
      "607  547  Whimsicott  Grass   Fairy    480  60      67       85       77   \n",
      "608  548     Petilil  Grass     NaN    280  45      35       50       70   \n",
      "609  549   Lilligant  Grass     NaN    480  70      60       75      110   \n",
      "\n",
      "     Sp. Def  Speed  Generation  Legendary  \n",
      "605       69    112           5      False  \n",
      "606       50     66           5      False  \n",
      "607       75    116           5      False  \n",
      "608       50     30           5      False  \n",
      "609       75     90           5      False  \n",
      "       #        Name  Type 1 Type 2  Total  HP  Attack  Defense  Sp. Atk  \\\n",
      "610  550    Basculin   Water    NaN    460  70      92       65       80   \n",
      "611  551     Sandile  Ground   Dark    292  50      72       35       35   \n",
      "612  552    Krokorok  Ground   Dark    351  60      82       45       45   \n",
      "613  553  Krookodile  Ground   Dark    519  95     117       80       65   \n",
      "614  554    Darumaka    Fire    NaN    315  70      90       45       15   \n",
      "\n",
      "     Sp. Def  Speed  Generation  Legendary  \n",
      "610       55     98           5      False  \n",
      "611       35     65           5      False  \n",
      "612       45     74           5      False  \n",
      "613       70     92           5      False  \n",
      "614       45     50           5      False  \n",
      "       #                     Name Type 1   Type 2  Total   HP  Attack  \\\n",
      "615  555  DarmanitanStandard Mode   Fire      NaN    480  105     140   \n",
      "616  555       DarmanitanZen Mode   Fire  Psychic    540  105      30   \n",
      "617  556                 Maractus  Grass      NaN    461   75      86   \n",
      "618  557                  Dwebble    Bug     Rock    325   50      65   \n",
      "619  558                  Crustle    Bug     Rock    475   70      95   \n",
      "\n",
      "     Defense  Sp. Atk  Sp. Def  Speed  Generation  Legendary  \n",
      "615       55       30       55     95           5      False  \n",
      "616      105      140      105     55           5      False  \n",
      "617       67      106       67     60           5      False  \n",
      "618       85       35       35     55           5      False  \n",
      "619      125       65       75     45           5      False  \n",
      "       #        Name   Type 1    Type 2  Total  HP  Attack  Defense  Sp. Atk  \\\n",
      "620  559     Scraggy     Dark  Fighting    348  50      75       70       35   \n",
      "621  560     Scrafty     Dark  Fighting    488  65      90      115       45   \n",
      "622  561    Sigilyph  Psychic    Flying    490  72      58       80      103   \n",
      "623  562      Yamask    Ghost       NaN    303  38      30       85       55   \n",
      "624  563  Cofagrigus    Ghost       NaN    483  58      50      145       95   \n",
      "\n",
      "     Sp. Def  Speed  Generation  Legendary  \n",
      "620       70     48           5      False  \n",
      "621      115     58           5      False  \n",
      "622       80     97           5      False  \n",
      "623       65     30           5      False  \n",
      "624      105     30           5      False  \n",
      "       #        Name  Type 1  Type 2  Total  HP  Attack  Defense  Sp. Atk  \\\n",
      "625  564    Tirtouga   Water    Rock    355  54      78      103       53   \n",
      "626  565  Carracosta   Water    Rock    495  74     108      133       83   \n",
      "627  566      Archen    Rock  Flying    401  55     112       45       74   \n",
      "628  567    Archeops    Rock  Flying    567  75     140       65      112   \n",
      "629  568    Trubbish  Poison     NaN    329  50      50       62       40   \n",
      "\n",
      "     Sp. Def  Speed  Generation  Legendary  \n",
      "625       45     22           5      False  \n",
      "626       65     32           5      False  \n",
      "627       45     70           5      False  \n",
      "628       65    110           5      False  \n",
      "629       62     65           5      False  \n"
     ]
    },
    {
     "name": "stdout",
     "output_type": "stream",
     "text": [
      "       #      Name  Type 1  Type 2  Total  HP  Attack  Defense  Sp. Atk  \\\n",
      "630  569  Garbodor  Poison     NaN    474  80      95       82       60   \n",
      "631  570     Zorua    Dark     NaN    330  40      65       40       80   \n",
      "632  571   Zoroark    Dark     NaN    510  60     105       60      120   \n",
      "633  572  Minccino  Normal     NaN    300  55      50       40       40   \n",
      "634  573  Cinccino  Normal     NaN    470  75      95       60       65   \n",
      "\n",
      "     Sp. Def  Speed  Generation  Legendary  \n",
      "630       82     75           5      False  \n",
      "631       40     65           5      False  \n",
      "632       60    105           5      False  \n",
      "633       40     75           5      False  \n",
      "634       60    115           5      False  \n",
      "       #        Name   Type 1  Type 2  Total  HP  Attack  Defense  Sp. Atk  \\\n",
      "635  574     Gothita  Psychic     NaN    290  45      30       50       55   \n",
      "636  575   Gothorita  Psychic     NaN    390  60      45       70       75   \n",
      "637  576  Gothitelle  Psychic     NaN    490  70      55       95       95   \n",
      "638  577     Solosis  Psychic     NaN    290  45      30       40      105   \n",
      "639  578     Duosion  Psychic     NaN    370  65      40       50      125   \n",
      "\n",
      "     Sp. Def  Speed  Generation  Legendary  \n",
      "635       65     45           5      False  \n",
      "636       85     55           5      False  \n",
      "637      110     65           5      False  \n",
      "638       50     20           5      False  \n",
      "639       60     30           5      False  \n",
      "       #       Name   Type 1  Type 2  Total   HP  Attack  Defense  Sp. Atk  \\\n",
      "640  579  Reuniclus  Psychic     NaN    490  110      65       75      125   \n",
      "641  580   Ducklett    Water  Flying    305   62      44       50       44   \n",
      "642  581     Swanna    Water  Flying    473   75      87       63       87   \n",
      "643  582  Vanillite      Ice     NaN    305   36      50       50       65   \n",
      "644  583  Vanillish      Ice     NaN    395   51      65       65       80   \n",
      "\n",
      "     Sp. Def  Speed  Generation  Legendary  \n",
      "640       85     30           5      False  \n",
      "641       50     55           5      False  \n",
      "642       63     98           5      False  \n",
      "643       60     44           5      False  \n",
      "644       75     59           5      False  \n",
      "       #        Name    Type 1  Type 2  Total  HP  Attack  Defense  Sp. Atk  \\\n",
      "645  584   Vanilluxe       Ice     NaN    535  71      95       85      110   \n",
      "646  585    Deerling    Normal   Grass    335  60      60       50       40   \n",
      "647  586    Sawsbuck    Normal   Grass    475  80     100       70       60   \n",
      "648  587      Emolga  Electric  Flying    428  55      75       60       75   \n",
      "649  588  Karrablast       Bug     NaN    315  50      75       45       40   \n",
      "\n",
      "     Sp. Def  Speed  Generation  Legendary  \n",
      "645       95     79           5      False  \n",
      "646       50     75           5      False  \n",
      "647       70     95           5      False  \n",
      "648       60    103           5      False  \n",
      "649       45     60           5      False  \n",
      "       #        Name Type 1  Type 2  Total   HP  Attack  Defense  Sp. Atk  \\\n",
      "650  589  Escavalier    Bug   Steel    495   70     135      105       60   \n",
      "651  590     Foongus  Grass  Poison    294   69      55       45       55   \n",
      "652  591   Amoonguss  Grass  Poison    464  114      85       70       85   \n",
      "653  592    Frillish  Water   Ghost    335   55      40       50       65   \n",
      "654  593   Jellicent  Water   Ghost    480  100      60       70       85   \n",
      "\n",
      "     Sp. Def  Speed  Generation  Legendary  \n",
      "650      105     20           5      False  \n",
      "651       55     15           5      False  \n",
      "652       80     30           5      False  \n",
      "653       85     40           5      False  \n",
      "654      105     60           5      False  \n",
      "       #        Name Type 1    Type 2  Total   HP  Attack  Defense  Sp. Atk  \\\n",
      "655  594   Alomomola  Water       NaN    470  165      75       80       40   \n",
      "656  595      Joltik    Bug  Electric    319   50      47       50       57   \n",
      "657  596  Galvantula    Bug  Electric    472   70      77       60       97   \n",
      "658  597   Ferroseed  Grass     Steel    305   44      50       91       24   \n",
      "659  598  Ferrothorn  Grass     Steel    489   74      94      131       54   \n",
      "\n",
      "     Sp. Def  Speed  Generation  Legendary  \n",
      "655       45     65           5      False  \n",
      "656       50     65           5      False  \n",
      "657       60    108           5      False  \n",
      "658       86     10           5      False  \n",
      "659      116     20           5      False  \n",
      "       #       Name    Type 1  Type 2  Total  HP  Attack  Defense  Sp. Atk  \\\n",
      "660  599      Klink     Steel     NaN    300  40      55       70       45   \n",
      "661  600      Klang     Steel     NaN    440  60      80       95       70   \n",
      "662  601  Klinklang     Steel     NaN    520  60     100      115       70   \n",
      "663  602     Tynamo  Electric     NaN    275  35      55       40       45   \n",
      "664  603  Eelektrik  Electric     NaN    405  65      85       70       75   \n",
      "\n",
      "     Sp. Def  Speed  Generation  Legendary  \n",
      "660       60     30           5      False  \n",
      "661       85     50           5      False  \n",
      "662       85     90           5      False  \n",
      "663       40     60           5      False  \n",
      "664       70     40           5      False  \n",
      "       #        Name    Type 1 Type 2  Total  HP  Attack  Defense  Sp. Atk  \\\n",
      "665  604  Eelektross  Electric    NaN    515  85     115       80      105   \n",
      "666  605      Elgyem   Psychic    NaN    335  55      55       55       85   \n",
      "667  606    Beheeyem   Psychic    NaN    485  75      75       75      125   \n",
      "668  607     Litwick     Ghost   Fire    275  50      30       55       65   \n",
      "669  608     Lampent     Ghost   Fire    370  60      40       60       95   \n",
      "\n",
      "     Sp. Def  Speed  Generation  Legendary  \n",
      "665       80     50           5      False  \n",
      "666       55     30           5      False  \n",
      "667       95     40           5      False  \n",
      "668       55     20           5      False  \n",
      "669       60     55           5      False  \n",
      "       #        Name  Type 1 Type 2  Total  HP  Attack  Defense  Sp. Atk  \\\n",
      "670  609  Chandelure   Ghost   Fire    520  60      55       90      145   \n",
      "671  610        Axew  Dragon    NaN    320  46      87       60       30   \n",
      "672  611     Fraxure  Dragon    NaN    410  66     117       70       40   \n",
      "673  612     Haxorus  Dragon    NaN    540  76     147       90       60   \n",
      "674  613     Cubchoo     Ice    NaN    305  55      70       40       60   \n",
      "\n",
      "     Sp. Def  Speed  Generation  Legendary  \n",
      "670       90     80           5      False  \n",
      "671       40     57           5      False  \n",
      "672       50     67           5      False  \n",
      "673       70     97           5      False  \n",
      "674       40     40           5      False  \n",
      "       #       Name  Type 1    Type 2  Total   HP  Attack  Defense  Sp. Atk  \\\n",
      "675  614    Beartic     Ice       NaN    485   95     110       80       70   \n",
      "676  615  Cryogonal     Ice       NaN    485   70      50       30       95   \n",
      "677  616    Shelmet     Bug       NaN    305   50      40       85       40   \n",
      "678  617   Accelgor     Bug       NaN    495   80      70       40      100   \n",
      "679  618   Stunfisk  Ground  Electric    471  109      66       84       81   \n",
      "\n",
      "     Sp. Def  Speed  Generation  Legendary  \n",
      "675       80     50           5      False  \n",
      "676      135    105           5      False  \n",
      "677       65     25           5      False  \n",
      "678       60    145           5      False  \n",
      "679       99     32           5      False  \n",
      "       #       Name    Type 1 Type 2  Total  HP  Attack  Defense  Sp. Atk  \\\n",
      "680  619    Mienfoo  Fighting    NaN    350  45      85       50       55   \n",
      "681  620   Mienshao  Fighting    NaN    510  65     125       60       95   \n",
      "682  621  Druddigon    Dragon    NaN    485  77     120       90       60   \n",
      "683  622     Golett    Ground  Ghost    303  59      74       50       35   \n",
      "684  623     Golurk    Ground  Ghost    483  89     124       80       55   \n",
      "\n",
      "     Sp. Def  Speed  Generation  Legendary  \n",
      "680       50     65           5      False  \n",
      "681       60    105           5      False  \n",
      "682       90     48           5      False  \n",
      "683       50     35           5      False  \n",
      "684       80     55           5      False  \n",
      "       #        Name  Type 1  Type 2  Total   HP  Attack  Defense  Sp. Atk  \\\n",
      "685  624    Pawniard    Dark   Steel    340   45      85       70       40   \n",
      "686  625     Bisharp    Dark   Steel    490   65     125      100       60   \n",
      "687  626  Bouffalant  Normal     NaN    490   95     110       95       40   \n",
      "688  627     Rufflet  Normal  Flying    350   70      83       50       37   \n",
      "689  628    Braviary  Normal  Flying    510  100     123       75       57   \n",
      "\n",
      "     Sp. Def  Speed  Generation  Legendary  \n",
      "685       40     60           5      False  \n",
      "686       70     70           5      False  \n",
      "687       95     55           5      False  \n",
      "688       50     60           5      False  \n",
      "689       75     80           5      False  \n",
      "       #       Name Type 1  Type 2  Total   HP  Attack  Defense  Sp. Atk  \\\n",
      "690  629    Vullaby   Dark  Flying    370   70      55       75       45   \n",
      "691  630  Mandibuzz   Dark  Flying    510  110      65      105       55   \n",
      "692  631    Heatmor   Fire     NaN    484   85      97       66      105   \n",
      "693  632     Durant    Bug   Steel    484   58     109      112       48   \n",
      "694  633      Deino   Dark  Dragon    300   52      65       50       45   \n",
      "\n",
      "     Sp. Def  Speed  Generation  Legendary  \n",
      "690       65     60           5      False  \n",
      "691       95     80           5      False  \n",
      "692       66     65           5      False  \n",
      "693       48    109           5      False  \n",
      "694       50     38           5      False  \n",
      "       #       Name Type 1    Type 2  Total  HP  Attack  Defense  Sp. Atk  \\\n",
      "695  634   Zweilous   Dark    Dragon    420  72      85       70       65   \n",
      "696  635  Hydreigon   Dark    Dragon    600  92     105       90      125   \n",
      "697  636   Larvesta    Bug      Fire    360  55      85       55       50   \n",
      "698  637  Volcarona    Bug      Fire    550  85      60       65      135   \n",
      "699  638   Cobalion  Steel  Fighting    580  91      90      129       90   \n",
      "\n",
      "     Sp. Def  Speed  Generation  Legendary  \n",
      "695       70     58           5      False  \n",
      "696       90     98           5      False  \n",
      "697       55     60           5      False  \n",
      "698      105    100           5      False  \n",
      "699       72    108           5       True  \n",
      "       #                      Name    Type 1    Type 2  Total  HP  Attack  \\\n",
      "700  639                 Terrakion      Rock  Fighting    580  91     129   \n",
      "701  640                  Virizion     Grass  Fighting    580  91      90   \n",
      "702  641   TornadusIncarnate Forme    Flying       NaN    580  79     115   \n",
      "703  641     TornadusTherian Forme    Flying       NaN    580  79     100   \n",
      "704  642  ThundurusIncarnate Forme  Electric    Flying    580  79     115   \n",
      "\n",
      "     Defense  Sp. Atk  Sp. Def  Speed  Generation  Legendary  \n",
      "700       90       72       90    108           5       True  \n",
      "701       72       90      129    108           5       True  \n",
      "702       70      125       80    111           5       True  \n",
      "703       80      110       90    121           5       True  \n",
      "704       70      125       80    111           5       True  \n",
      "       #                     Name    Type 1    Type 2  Total   HP  Attack  \\\n",
      "705  642   ThundurusTherian Forme  Electric    Flying    580   79     105   \n",
      "706  643                 Reshiram    Dragon      Fire    680  100     120   \n",
      "707  644                   Zekrom    Dragon  Electric    680  100     150   \n",
      "708  645  LandorusIncarnate Forme    Ground    Flying    600   89     125   \n",
      "709  645    LandorusTherian Forme    Ground    Flying    600   89     145   \n",
      "\n",
      "     Defense  Sp. Atk  Sp. Def  Speed  Generation  Legendary  \n",
      "705       70      145       80    101           5       True  \n",
      "706      100      150      120     90           5       True  \n",
      "707      120      120      100     90           5       True  \n",
      "708       90      115       80    101           5       True  \n",
      "709       90      105       80     91           5       True  \n",
      "       #                  Name  Type 1    Type 2  Total   HP  Attack  Defense  \\\n",
      "710  646                Kyurem  Dragon       Ice    660  125     130       90   \n",
      "711  646    KyuremBlack Kyurem  Dragon       Ice    700  125     170      100   \n",
      "712  646    KyuremWhite Kyurem  Dragon       Ice    700  125     120       90   \n",
      "713  647  KeldeoOrdinary Forme   Water  Fighting    580   91      72       90   \n",
      "714  647  KeldeoResolute Forme   Water  Fighting    580   91      72       90   \n",
      "\n",
      "     Sp. Atk  Sp. Def  Speed  Generation  Legendary  \n",
      "710      130       90     95           5       True  \n",
      "711      120       90     95           5       True  \n",
      "712      170      100     95           5       True  \n",
      "713      129       90    108           5      False  \n",
      "714      129       90    108           5      False  \n",
      "       #                     Name  Type 1    Type 2  Total   HP  Attack  \\\n",
      "715  648       MeloettaAria Forme  Normal   Psychic    600  100      77   \n",
      "716  648  MeloettaPirouette Forme  Normal  Fighting    600  100     128   \n",
      "717  649                 Genesect     Bug     Steel    600   71     120   \n",
      "718  650                  Chespin   Grass       NaN    313   56      61   \n",
      "719  651                Quilladin   Grass       NaN    405   61      78   \n",
      "\n",
      "     Defense  Sp. Atk  Sp. Def  Speed  Generation  Legendary  \n",
      "715       77      128      128     90           5      False  \n",
      "716       90       77       77    128           5      False  \n",
      "717       95      120       95     99           5      False  \n",
      "718       65       48       45     38           6      False  \n",
      "719       95       56       58     57           6      False  \n",
      "       #        Name Type 1    Type 2  Total  HP  Attack  Defense  Sp. Atk  \\\n",
      "720  652  Chesnaught  Grass  Fighting    530  88     107      122       74   \n",
      "721  653    Fennekin   Fire       NaN    307  40      45       40       62   \n",
      "722  654     Braixen   Fire       NaN    409  59      59       58       90   \n",
      "723  655     Delphox   Fire   Psychic    534  75      69       72      114   \n",
      "724  656     Froakie  Water       NaN    314  41      56       40       62   \n",
      "\n",
      "     Sp. Def  Speed  Generation  Legendary  \n",
      "720       75     64           6      False  \n",
      "721       60     60           6      False  \n",
      "722       70     73           6      False  \n",
      "723      100    104           6      False  \n",
      "724       44     71           6      False  \n",
      "       #        Name  Type 1  Type 2  Total  HP  Attack  Defense  Sp. Atk  \\\n",
      "725  657   Frogadier   Water     NaN    405  54      63       52       83   \n",
      "726  658    Greninja   Water    Dark    530  72      95       67      103   \n",
      "727  659    Bunnelby  Normal     NaN    237  38      36       38       32   \n",
      "728  660   Diggersby  Normal  Ground    423  85      56       77       50   \n",
      "729  661  Fletchling  Normal  Flying    278  45      50       43       40   \n",
      "\n",
      "     Sp. Def  Speed  Generation  Legendary  \n",
      "725       56     97           6      False  \n",
      "726       71    122           6      False  \n",
      "727       36     57           6      False  \n",
      "728       77     78           6      False  \n",
      "729       38     62           6      False  \n",
      "       #         Name Type 1  Type 2  Total  HP  Attack  Defense  Sp. Atk  \\\n",
      "730  662  Fletchinder   Fire  Flying    382  62      73       55       56   \n",
      "731  663   Talonflame   Fire  Flying    499  78      81       71       74   \n",
      "732  664   Scatterbug    Bug     NaN    200  38      35       40       27   \n",
      "733  665       Spewpa    Bug     NaN    213  45      22       60       27   \n",
      "734  666     Vivillon    Bug  Flying    411  80      52       50       90   \n",
      "\n",
      "     Sp. Def  Speed  Generation  Legendary  \n",
      "730       52     84           6      False  \n",
      "731       69    126           6      False  \n",
      "732       25     35           6      False  \n",
      "733       30     29           6      False  \n",
      "734       50     89           6      False  \n",
      "       #     Name Type 1  Type 2  Total  HP  Attack  Defense  Sp. Atk  \\\n",
      "735  667   Litleo   Fire  Normal    369  62      50       58       73   \n",
      "736  668   Pyroar   Fire  Normal    507  86      68       72      109   \n",
      "737  669  Flabébé  Fairy     NaN    303  44      38       39       61   \n",
      "738  670  Floette  Fairy     NaN    371  54      45       47       75   \n",
      "739  671  Florges  Fairy     NaN    552  78      65       68      112   \n",
      "\n",
      "     Sp. Def  Speed  Generation  Legendary  \n",
      "735       54     72           6      False  \n",
      "736       66    106           6      False  \n",
      "737       79     42           6      False  \n",
      "738       98     52           6      False  \n",
      "739      154     75           6      False  \n",
      "       #     Name    Type 1 Type 2  Total   HP  Attack  Defense  Sp. Atk  \\\n",
      "740  672   Skiddo     Grass    NaN    350   66      65       48       62   \n",
      "741  673   Gogoat     Grass    NaN    531  123     100       62       97   \n",
      "742  674  Pancham  Fighting    NaN    348   67      82       62       46   \n",
      "743  675  Pangoro  Fighting   Dark    495   95     124       78       69   \n",
      "744  676  Furfrou    Normal    NaN    472   75      80       60       65   \n",
      "\n",
      "     Sp. Def  Speed  Generation  Legendary  \n",
      "740       57     52           6      False  \n",
      "741       81     68           6      False  \n",
      "742       48     43           6      False  \n",
      "743       71     58           6      False  \n",
      "744       90    102           6      False  \n",
      "       #            Name   Type 1 Type 2  Total  HP  Attack  Defense  Sp. Atk  \\\n",
      "745  677          Espurr  Psychic    NaN    355  62      48       54       63   \n",
      "746  678    MeowsticMale  Psychic    NaN    466  74      48       76       83   \n",
      "747  678  MeowsticFemale  Psychic    NaN    466  74      48       76       83   \n",
      "748  679         Honedge    Steel  Ghost    325  45      80      100       35   \n",
      "749  680        Doublade    Steel  Ghost    448  59     110      150       45   \n",
      "\n",
      "     Sp. Def  Speed  Generation  Legendary  \n",
      "745       60     68           6      False  \n",
      "746       81    104           6      False  \n",
      "747       81    104           6      False  \n",
      "748       37     28           6      False  \n",
      "749       49     35           6      False  \n",
      "       #                   Name Type 1 Type 2  Total   HP  Attack  Defense  \\\n",
      "750  681   AegislashBlade Forme  Steel  Ghost    520   60     150       50   \n",
      "751  681  AegislashShield Forme  Steel  Ghost    520   60      50      150   \n",
      "752  682               Spritzee  Fairy    NaN    341   78      52       60   \n",
      "753  683             Aromatisse  Fairy    NaN    462  101      72       72   \n",
      "754  684                Swirlix  Fairy    NaN    341   62      48       66   \n",
      "\n",
      "     Sp. Atk  Sp. Def  Speed  Generation  Legendary  \n",
      "750      150       50     60           6      False  \n",
      "751       50      150     60           6      False  \n",
      "752       63       65     23           6      False  \n",
      "753       99       89     29           6      False  \n",
      "754       59       57     49           6      False  \n"
     ]
    },
    {
     "name": "stdout",
     "output_type": "stream",
     "text": [
      "       #        Name Type 1   Type 2  Total  HP  Attack  Defense  Sp. Atk  \\\n",
      "755  685    Slurpuff  Fairy      NaN    480  82      80       86       85   \n",
      "756  686       Inkay   Dark  Psychic    288  53      54       53       37   \n",
      "757  687     Malamar   Dark  Psychic    482  86      92       88       68   \n",
      "758  688     Binacle   Rock    Water    306  42      52       67       39   \n",
      "759  689  Barbaracle   Rock    Water    500  72     105      115       54   \n",
      "\n",
      "     Sp. Def  Speed  Generation  Legendary  \n",
      "755       75     72           6      False  \n",
      "756       46     45           6      False  \n",
      "757       75     73           6      False  \n",
      "758       56     50           6      False  \n",
      "759       86     68           6      False  \n",
      "       #        Name    Type 1  Type 2  Total  HP  Attack  Defense  Sp. Atk  \\\n",
      "760  690      Skrelp    Poison   Water    320  50      60       60       60   \n",
      "761  691    Dragalge    Poison  Dragon    494  65      75       90       97   \n",
      "762  692   Clauncher     Water     NaN    330  50      53       62       58   \n",
      "763  693   Clawitzer     Water     NaN    500  71      73       88      120   \n",
      "764  694  Helioptile  Electric  Normal    289  44      38       33       61   \n",
      "\n",
      "     Sp. Def  Speed  Generation  Legendary  \n",
      "760       60     30           6      False  \n",
      "761      123     44           6      False  \n",
      "762       63     44           6      False  \n",
      "763       89     59           6      False  \n",
      "764       43     70           6      False  \n",
      "       #       Name    Type 1  Type 2  Total   HP  Attack  Defense  Sp. Atk  \\\n",
      "765  695  Heliolisk  Electric  Normal    481   62      55       52      109   \n",
      "766  696     Tyrunt      Rock  Dragon    362   58      89       77       45   \n",
      "767  697  Tyrantrum      Rock  Dragon    521   82     121      119       69   \n",
      "768  698     Amaura      Rock     Ice    362   77      59       50       67   \n",
      "769  699    Aurorus      Rock     Ice    521  123      77       72       99   \n",
      "\n",
      "     Sp. Def  Speed  Generation  Legendary  \n",
      "765       94    109           6      False  \n",
      "766       45     48           6      False  \n",
      "767       59     71           6      False  \n",
      "768       63     46           6      False  \n",
      "769       92     58           6      False  \n",
      "       #      Name    Type 1  Type 2  Total  HP  Attack  Defense  Sp. Atk  \\\n",
      "770  700   Sylveon     Fairy     NaN    525  95      65       65      110   \n",
      "771  701  Hawlucha  Fighting  Flying    500  78      92       75       74   \n",
      "772  702   Dedenne  Electric   Fairy    431  67      58       57       81   \n",
      "773  703   Carbink      Rock   Fairy    500  50      50      150       50   \n",
      "774  704     Goomy    Dragon     NaN    300  45      50       35       55   \n",
      "\n",
      "     Sp. Def  Speed  Generation  Legendary  \n",
      "770      130     60           6      False  \n",
      "771       63    118           6      False  \n",
      "772       67    101           6      False  \n",
      "773      150     50           6      False  \n",
      "774       75     40           6      False  \n",
      "       #       Name  Type 1 Type 2  Total  HP  Attack  Defense  Sp. Atk  \\\n",
      "775  705    Sliggoo  Dragon    NaN    452  68      75       53       83   \n",
      "776  706     Goodra  Dragon    NaN    600  90     100       70      110   \n",
      "777  707     Klefki   Steel  Fairy    470  57      80       91       80   \n",
      "778  708   Phantump   Ghost  Grass    309  43      70       48       50   \n",
      "779  709  Trevenant   Ghost  Grass    474  85     110       76       65   \n",
      "\n",
      "     Sp. Def  Speed  Generation  Legendary  \n",
      "775      113     60           6      False  \n",
      "776      150     80           6      False  \n",
      "777       87     75           6      False  \n",
      "778       60     38           6      False  \n",
      "779       82     56           6      False  \n",
      "       #                   Name Type 1 Type 2  Total  HP  Attack  Defense  \\\n",
      "780  710  PumpkabooAverage Size  Ghost  Grass    335  49      66       70   \n",
      "781  710    PumpkabooSmall Size  Ghost  Grass    335  44      66       70   \n",
      "782  710    PumpkabooLarge Size  Ghost  Grass    335  54      66       70   \n",
      "783  710    PumpkabooSuper Size  Ghost  Grass    335  59      66       70   \n",
      "784  711  GourgeistAverage Size  Ghost  Grass    494  65      90      122   \n",
      "\n",
      "     Sp. Atk  Sp. Def  Speed  Generation  Legendary  \n",
      "780       44       55     51           6      False  \n",
      "781       44       55     56           6      False  \n",
      "782       44       55     46           6      False  \n",
      "783       44       55     41           6      False  \n",
      "784       58       75     84           6      False  \n",
      "       #                 Name Type 1 Type 2  Total  HP  Attack  Defense  \\\n",
      "785  711  GourgeistSmall Size  Ghost  Grass    494  55      85      122   \n",
      "786  711  GourgeistLarge Size  Ghost  Grass    494  75      95      122   \n",
      "787  711  GourgeistSuper Size  Ghost  Grass    494  85     100      122   \n",
      "788  712             Bergmite    Ice    NaN    304  55      69       85   \n",
      "789  713              Avalugg    Ice    NaN    514  95     117      184   \n",
      "\n",
      "     Sp. Atk  Sp. Def  Speed  Generation  Legendary  \n",
      "785       58       75     99           6      False  \n",
      "786       58       75     69           6      False  \n",
      "787       58       75     54           6      False  \n",
      "788       32       35     28           6      False  \n",
      "789       44       46     28           6      False  \n",
      "       #              Name  Type 1  Type 2  Total   HP  Attack  Defense  \\\n",
      "790  714            Noibat  Flying  Dragon    245   40      30       35   \n",
      "791  715           Noivern  Flying  Dragon    535   85      70       80   \n",
      "792  716           Xerneas   Fairy     NaN    680  126     131       95   \n",
      "793  717           Yveltal    Dark  Flying    680  126     131       95   \n",
      "794  718  Zygarde50% Forme  Dragon  Ground    600  108     100      121   \n",
      "\n",
      "     Sp. Atk  Sp. Def  Speed  Generation  Legendary  \n",
      "790       45       40     55           6      False  \n",
      "791       97       80    123           6      False  \n",
      "792      131       98     99           6       True  \n",
      "793      131       98     99           6       True  \n",
      "794       81       95     95           6       True  \n",
      "       #                 Name   Type 1 Type 2  Total  HP  Attack  Defense  \\\n",
      "795  719              Diancie     Rock  Fairy    600  50     100      150   \n",
      "796  719  DiancieMega Diancie     Rock  Fairy    700  50     160      110   \n",
      "797  720  HoopaHoopa Confined  Psychic  Ghost    600  80     110       60   \n",
      "798  720   HoopaHoopa Unbound  Psychic   Dark    680  80     160       60   \n",
      "799  721            Volcanion     Fire  Water    600  80     110      120   \n",
      "\n",
      "     Sp. Atk  Sp. Def  Speed  Generation  Legendary  \n",
      "795      100      150     50           6       True  \n",
      "796      160      110    110           6       True  \n",
      "797      150      130     70           6       True  \n",
      "798      170      130     80           6       True  \n",
      "799      130       90     70           6       True  \n"
     ]
    }
   ],
   "source": [
    "new_df = pd.DataFrame(columns=df.columns)\n",
    "\n",
    "for df in pd.read_csv('modified.csv', chunksize=5):\n",
    "    results = df.groupby(['Type 1']).count()\n",
    "    \n",
    "    new_df = pd.concat([new_df, results])\n",
    "    \n",
    "\n",
    "    \n",
    "\n",
    "\n",
    "\n"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": null,
   "metadata": {},
   "outputs": [],
   "source": [
    "\n",
    "\n",
    "\n"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": null,
   "metadata": {},
   "outputs": [],
   "source": []
  }
 ],
 "metadata": {
  "kernelspec": {
   "display_name": "Python 3",
   "language": "python",
   "name": "python3"
  },
  "language_info": {
   "codemirror_mode": {
    "name": "ipython",
    "version": 3
   },
   "file_extension": ".py",
   "mimetype": "text/x-python",
   "name": "python",
   "nbconvert_exporter": "python",
   "pygments_lexer": "ipython3",
   "version": "3.6.5"
  }
 },
 "nbformat": 4,
 "nbformat_minor": 2
}
